JTabbedPane problem

2003-01-16 Thread Aleksandr Kravets
Hello, I have a JTabbedPane in which when I click a specific tab I launch ProgressMonitor that shows progress of file that is being read. After ProgressMonitor closes, focus on the tab screen is gained, but everything in it is not showing (blank screen). Only after I click inside the screen will

knowing when JComboBox's data has changed

2003-01-28 Thread Aleksandr Kravets
Hello, I have a custom JComboBox class where I set a ToolTip for each item. It works in times when I send a populated vector to the class. However, sometimes I need to send an empty vector and populate it later. How can I find out in custom JCB class when my vector has changed in number of

ListCellRenderer

2003-07-29 Thread Aleksandr Kravets
Hi, I have a JTable in which I use JList as row header. I also alternate colors of rows between gray and white. Now I need to color some of the rows of JList in red. What I have is vector of rows that need to be colored in red, in ListCellRenderer I loop thru this vector and compare each element

JFrame question

2003-07-30 Thread Aleksandr Kravets
Hi, When I call JFrame from my Applet, JFrame appears with a status bar saying 'Java Applet Window'. Is there a way to get rid off this status bar? thanks, Alex K ___ Advanced-swing mailing list [EMAIL PROTECTED]

Re: JFrame question

2003-07-30 Thread Aleksandr Kravets
heavyweight window as a (reputed) security feature. -Original Message- From: Aleksandr Kravets [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:22 PM To: Swing Forum Subject: JFrame question Hi, When I call JFrame from my Applet, JFrame appears with a status bar saying 'Java

Re: JFrame question

2003-07-30 Thread Aleksandr Kravets
the message, your window is a lightweight window or you are running in an open/unsecured environment (e.g. a signed jar, an altered java.policy file, or running as a standalone Java app). -Original Message- From: Aleksandr Kravets [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5

another JFrame question

2003-07-31 Thread Aleksandr Kravets
Hi, When my Applet loads a JFrame, a user can click inside an Applet and JFrame will hide. Is there a way to keep JFrame visible until user closes it and if JFrame looses focus, JFrame is visible a top of Applet anyway? thanks, Alex ___ Advanced-swing

Re: AW: another JFrame question

2003-07-31 Thread Aleksandr Kravets
thanks Salvador, But where exectly do I have to put this code? Alex Salvador Richter wrote: Maybe JDialog will not be modal even if you say it to be modal. therefore you can attach your dialog to the browsers frame use Container cont = 'your applet'; while(cont != null) {

Re: AW: AW: another JFrame question

2003-07-31 Thread Aleksandr Kravets
thanks! Salvador Richter wrote: Hi Alex, you have to use JDialog instead of JFrame and then do it like this public Frame getBrowserFrame() { Container cont = 'your applet'; while(cont != null) { cont = cont.getParent(); if(cont instanceof Frame) return (Frame)cont;

Re: Advanced-swing digest, Vol 1 #532 - 2 msgs

2003-08-07 Thread Aleksandr Kravets
Thanks Frank, So is MappedByteBuffer is really that fast? Also, I tried your suggestion of using predefined Boolean object -- seems to save at most 3 seconds. Alex [EMAIL PROTECTED] wrote: Send Advanced-swing mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe

re:formatting string as a date

2003-08-10 Thread Aleksandr Kravets
Actually got it working sort of... When I parse date string I have it as 04/03/03 so when done parsing I get year parsed as 0003 not 2003... ___ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing

formatting string as a date

2003-08-14 Thread Aleksandr Kravets
Hello, I need to format a String that I get from database which is in form 04/03/03 to 4/3/2003. When formatting today's date, I do the following: SimpleDateFormat formatter = new SimpleDateFormat(MM/dd/); calendar.add(calendar.DATE,2); int day = calendar.get(calendar.DAY_OF_MONTH); int