Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me with this GUI

 
Seetamraj Sriharsha
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to start my posts with a question....

I'm new into the world of java. I was given an assignment on creating a GUI for snake and ladders. They provided the image and asked to remake it.

I tried JTextArea and JTextField. I'm unable to set the location of JTextArea using setLocation method.

And JTextFiled has only one row, so I think I can't use it.

I want something like 100 X 100 px box on which I can place numbers (String).

Please help me regarding how to make this GUI.

Update:

I used 10 X 10 gridLayout.... and it seems to be fine. But please help me out if there are traps in my way.

 
Rob Camick
Ranch Hand
Posts: 2600
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used 10 X 10 gridLayout.... and it seems to be fine. But please help me out if there are traps in my way.


Thats the approach I would take. Now you and add labels with text to each grid.
 
Seetamraj Sriharsha
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:

Thats the approach I would take. Now you and add labels with text to each grid.


I placed text on TextField's.... It worked at last... I'm loving Java now... Can you please suggest where can I find resources to learn good OO programming...
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetamraj Sriharsha wrote: Can you please suggest where can I find resources to learn good OO programming...

Check out http://java.sun.com/docs/books/tutorial/java/concepts/
 
Seetamraj Sriharsha
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thank you vey much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic