|
-
Nov 6th, 2002, 05:15 AM
#1
Thread Starter
Hyperactive Member
2 part
Ok
1:) How can i only have the X button and not the max and min buttons on my Application
2:) anyone know where i can get a example where i can have Java read an XML file ?
-
Nov 6th, 2002, 07:24 AM
#2
#1 - Use the setResizable() method, and pass in false. Works in Swing, can't speak for AWT if that's what you are looking for.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 6th, 2002, 04:09 PM
#3
Thread Starter
Hyperactive Member
Yes was talking about Swing
-
Nov 7th, 2002, 12:01 AM
#4
Thread Starter
Hyperactive Member
got some more
How can i make the JComboBox list open Up and not Down?
i have this code but it sucsk know a better way to set the screen location?
Code:
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frmMain.getSize();
if (frameSize.height > screenSize.height)
{
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width)
{
frameSize.width = screenSize.width;
}
frmMain.setLocation((screenSize.width - frameSize.width) / 2 -80,(screenSize.height - frameSize.height) / 3);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|