Re: JDialog (or any window) sizing
Bill Michaelson wrote:
Much to my embarrassment, I tried setPreferredSize(int,int) on the
JScrollPane and assumed that the method did not exist for the class when
the compile failed.
The JavaDocs (or an automplete IDE) are much handy here..
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JScrollPane.html>
Do a search on 'setpref', and click the link.
'Voila' - setPreferredSize inherets from JComponent and
accepts a Dimension.
--
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
.
Relevant Pages
- Re: javax.swing Timer implementation
... Andrew Thompson physci, javasaver, 1point1c, lensescapes - athompson.info/andrew Currently accepting short and long term contracts - on Earth. ... (comp.lang.java.gui) - Re: Duplicate files...by the dozen
... try the manufacturer. ... Andrew Thompson physci, javasaver, 1point1c, lensescapes - athompson.info/andrew Currently accepting short and long term contracts - on Earth. ... (comp.lang.java.help) - Re: Personal Java problem
... Andrew Thompson physci, javasaver, 1point1c, lensescapes - athompson.info/andrew Currently accepting short and long term contracts - on Earth. ... (comp.lang.java.programmer) - Re: How to show a big size jpg into screen ( auto resize)
... (Note the JPEG's becomes bigger between disk and RAM) ... Andrew Thompson physci, javasaver, 1point1c, lensescapes - athompson.info/andrew. ... (comp.lang.java.programmer) - Re: Obfuscator
... successfully stopped anti-spam software being released with the word spam in the name. ... Andrew Thompson physci, javasaver, 1point1c, lensescapes - athompson.info/andrew. ... (comp.lang.java.programmer) |
|