*
The moose likes Swing / AWT / SWT and the fly likes Problem with 2D array of JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with 2D array of JButton" Watch "Problem with 2D array of JButton" New topic
Author

Problem with 2D array of JButton

ethaniel landfough
Greenhorn

Joined: Aug 16, 2009
Posts: 21
I'm trying to make crossword game with JButton. I need to put number on the top left of JButton, but got the result in the wrong order(upside down). How to make it so the number order show up in the same order as the topLeftNum array? I also need to get the input text from JTextField, put it in the JButton. But, i got error too. If, i want to make the program to check the input text with the real answer, where should i put the code in?? Thanks.

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
Cross posted

Be Forthright When Cross Posting To Other Sites
ethaniel landfough
Greenhorn

Joined: Aug 16, 2009
Posts: 21
I'm sorry. I'll take notes on it. Thanks
And my problems has been solved.

Here is the other sites that i also post the same question :

devx forum
dreamincode
Stackoverflow

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with 2D array of JButton
 
Similar Threads
Limit the character in JTextField
Error message Lat1 isn't abstract method
Applet componets not showing
Apply 2d array of answer to the right position of JTextField grid with JCheckBox
How to know which button being clicked?