And, just as a side note, a String is an Object...Every class in Java is derived from Object. From the API documentation:
java.lang.Object
extended by java.lang.String
Cheers,
Sean C....
Type: Posts; User: PekinSOFT.Systems
And, just as a side note, a String is an Object...Every class in Java is derived from Object. From the API documentation:
java.lang.Object
extended by java.lang.String
Cheers,
Sean C....
dewboy3d,
One thing that you could do is move your redundant code into functions. For example, you could have a function called `setButtons', which sets the enabled state of the buttons as is...
Try this, r12ki:
this.getRootPane().setDefaultButton(btnOK);
Cheers,
Sean C.
Hey All!
I'm working on a database access project and have most things working pretty well, with one glaring exception.
I've got a JInternalFrame form with 13 data fields to act as a front-end...
You kind of answered your question as you asked it...
You said in your question, "according to the selected item".
The last two words that I quoted above are your answer. Anytime you want to...
If you are using the NetBeans IDE to develop your project, you can set the point(s) to which your objects are anchored and then set which direction you want them to automatically resize.
Now, I...
Actually, the best way to center your form on the desktop is to use the java.awt.Toolkit API.
For example:
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int...