|
-
Dec 8th, 2005, 11:30 PM
#1
Thread Starter
New Member
JFrame window
How do i place objects on the JFrame window by refering to the coordinates on the window itself, rather than using a bunch of panels and layout options?
-
Dec 8th, 2005, 11:54 PM
#2
Re: JFrame window
set the layout option to null
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 9th, 2005, 02:25 AM
#3
Thread Starter
New Member
Re: JFrame window
Ok, but could you give me a little more information than that please? What do i do after that? Thanks for helping.
-
Dec 9th, 2005, 04:27 AM
#4
Re: JFrame window
This code creates a button in a no layout manager frame
Code:
getContentPane().setLayout(null);
JButton jButton1=new JButton();
jButton1.setBounds(new Rectangle(13, 27, 81, 31));
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 9th, 2005, 05:13 PM
#5
Thread Starter
New Member
Re: JFrame window
AH ok, thank you very much.
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
|