I am trying to use JTable for data entry. I assign few columns to contain Integer class type and others with Float. Now, the problem that arise is that...
Shomal Bafna
shomal@...
Dec 4, 2002 5:48 am
3209
One simple way, if all you want to do is fix the way it looks, is to set a renderer for that column that will convert the Number to the appropriate String...
Sachin Hejip
sachinh@...
Dec 4, 2002 5:53 am
3210
when does setMaximumSize() used. basically my code goes like this private void setIndentTable(){ ViewIndents vi = new ViewIndents(); DefaultTableModel dtm =...
Shomal Bafna
shomal@...
Dec 4, 2002 1:21 pm
3211
You didn't include the definitions of the various variables, etc., so I'll assume that the variable js is a JScrollPane. One thing about tables inside scroll...
Joel Kamentz
Joel.Kamentz@...
Dec 4, 2002 4:54 pm
3212
Hi, Is there anyway of building a minimizable and iconifiable JDialog.? Thank you. J.Ganesan...
J.Ganesan
tanyageo@...
Dec 5, 2002 5:15 pm
3213
Does anyone know a good way to get a reference to the JDialog which is the active dialog, i.e. the dialog at the top of the z-order? Our applet launches modal...
Farwell, Paul
PFarwell@...
Dec 5, 2002 7:44 pm
3214
Hi, I have one data. At client side, by using Jtable how many rows can I show at a time. If I am having huge number of rows, is it going to effect the...
Attili Venkata Ravi K...
ravi.attili@...
Dec 9, 2002 11:24 am
3215
JTable uses the GOF "Flyweight" pattern for painting. There are a small number of TableCellRenderers that do the actual painting work for each cell. Usually,...
Prescott, Ralph
ralph_prescott@...
Dec 12, 2002 4:53 pm
3216
If you find one would you post a note or email me? :) You can check out this site: http://www.enteract.com/~grieves/ He took an interesting approach -- a...
Prescott, Ralph
ralph_prescott@...
Dec 12, 2002 5:02 pm
3217
Hi , I want to create a JCheckBoxMenuItem which operates normally. but how do I handle the box icon? i want that the tick should b seen but box icon should be...
Nilamber Joshi
njoshi@...
Dec 17, 2002 6:15 am
3218
... So I do it: GridLayout layout=new GridLayout(5,2); Container c=getContentPane(); JLabel l1=new JLabel("one"); JLabel l2=new JLabel("two"); JLabel l3=new...
Edward King
zhangsc@...
Dec 17, 2002 8:28 am
3219
You may use two panels inside your container. In each panel you have to put what was your columns. ... And then add both panels to your container, either with...
Jorge Morales Pou
jmp07@...
Dec 17, 2002 9:07 am
3220
Hola Colin, Colin> It's worth pointing out as well that when using GridLayout, setting the Colin> size of your components has no effect as they will all be of...
Jorge Morales Pou
jmp07@...
Dec 17, 2002 9:21 am
3221
I have a JFrame and put in the screen of computer. When user press mouse left button and can move ths JFrame into any place. I want to keep the JFrame in the...
Edward King
zhangsc@...
Dec 18, 2002 3:34 am
3222
I defined a GridBagLayout and put three component in it,I want to get this goal which I want to every component in the GridBagLayout occupy equal col size,like...
Edward King
zhangsc@...
Dec 18, 2002 8:08 am
3223
Hi Edward, Remember, you are working on grd bag layout. The same column cannot have different widths in different rows, so it will adjust to the width of the ...
Krishnakumar CS
Krishnakumar.CS@...
Dec 18, 2002 8:39 am
3224
I have two JFrame,named "JFrame1" and "JFrame2".First I show JFrame1 in the screen of computer,then I set JFrame2's size and location and show JFrame2,make...
Edward King
zhangsc@...
Dec 19, 2002 3:08 am
3225
I have a class A ,I make a Container in class A and show it in the screen,like follows: ... then I transfer Container to another class B,I add some components...
Edward King
zhangsc@...
Dec 28, 2002 7:33 am
3226
Is it possible to create a button, which on clicking, cause a menu to pop up beside it? I just know that I can use JMenuItem and JMenu and add them to JMenuBar...
gghumman@...
Jan 2, 2003 11:39 pm
3227
It is possible to create a drop down button.. Use a JToggleButton . In the actionPerformed of it create a JPopupMenu with JMenuItems. Position the JPopupMenu...
ManojV@...
Jan 3, 2003 4:25 am
3228
Looks to me a JCheckBox can not coexist with a JComboBox? Here is the code. Everytime you click the JCheckBox then you will triger the actionPerformed method...
Lei Gao
gao@...
Jan 3, 2003 5:12 pm
3229
Well, a quick workaround of this is add that ActionListener to the ComboBoxEditor, which usually is a JTextField or something. Then it could work. I do think...
Lei Gao
gao@...
Jan 3, 2003 5:36 pm
3230
Lei Gao said: =>Looks to me a JCheckBox can not coexist with a JComboBox? => =>Here is the code. Everytime you click the JCheckBox then you will triger the ...
Patricia Keith
Patricia.A.Keith@...
Jan 3, 2003 5:44 pm
3231
I can't believe this exists in Swing, but I've found that when I loaded a 2MB file into JTextArea it creates literally 394,000+ java.lang.ref.Finalizer objects...
Joe Consumer
faceless1976@...
Jan 8, 2003 5:07 pm
3232
... Its an Object that encapsulates Objects, that have to be finalized by the Finalizer thread. A short grep shows 3 finalize() methods in the swing text...
Christian Pesch
christian.pesch@...
Jan 9, 2003 11:33 am
3233
Christain, Thanks for the info. THe problem seems to be that OptimizeIt doesn't seem to show these objects being GC'ed even at a slow pace. What is the fix?...
Joe Consumer
faceless1976@...
Jan 9, 2003 3:26 pm
3234
... The finalizer thread runs at a low priority in the hot spot vm. ... Do not use AbstractDocument :-) ... You can't avoid creating the elements. But you can...
Christian Pesch
christian.pesch@...
Jan 13, 2003 11:53 am
3235
Hi, I want to write a Java applet wysiwyg text editor which understands a simple markup language similar to Restructured Text. I'm not a particularly...
Greg Hamilton
gregh@...
Jan 14, 2003 1:58 am
3236
What do I have to do to make my JTable refresh its view automatically whenever I delete a row? Currently if I delete a row I need to resize any of its column...
Ruel Elvambuena
dnoveno@...
Jan 14, 2003 11:17 am
3237
try caling repaint on the table ... -- Regards Vikram Kumar Visit me at http://www.employees.org/~vikram _______________________________________________ ...