Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2005, 04:20 PM   PM User | #1
punx
New Coder

 
Join Date: Aug 2005
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
punx is an unknown quantity at this point
[Java] GUI Problem

I want to place a button at [row 2 column 2], it keeps going to [row 3 column 2]. When I use a JTextField, it works fine. Here is the code of the two.
Using the JButton
Code:
	public Rpg()
	{
		setTitle("Fantasy Game");
		output = addTextArea 		(""				,1,1,1,1);
		commandField = addTextField	(""				,2,1,1,1);
		enterButton = addButton		("Enter"		,2,2,1,1);
	}
Using the JTextField
Code:
	public Rpg()
	{
		setTitle("Fantasy Game");
		output = addTextArea 		(""				,1,1,1,1);
		commandField = addTextField	(""				,2,1,1,1);
		enterButton = addTextField		("Enter"		,2,2,1,1);
	}
A screenshot of the two next to each other can be seen at:
http://www.freewebs.com/endlessxxhopes/problem.JPG

Thanks for any help
punx is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:41 PM.


Advertisement
Log in to turn off these ads.