• Post Reply Bookmark Topic Watch Topic
  • New Topic

JRadioButton / BorderLayout Problem  RSS feed

 
Risu Suzuki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Using Eclipse I wrote a very simple program that displays three JRadioButtons. When I assign them to the South, the buttons stop being interactive, although in test cases I found that they will work(actionPerform). North always works (are interactive). Assigning CENTER displays to the EAST or WEST and sometimes are interactive. WEST doesn't work too, and leaving the assignment blank puts the buttons in the EAST, and they will work.

To be clear, by work I mean will become highlighted and switch when selected. I did find that BUTTON does work in all directions. But checkboxes and comboboxes don't work either, except in the north.

Thank you.
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code you posted doesn't help is since it isn't executable.

Update your code with a SSCCE that demonstrates the problem. And don't forget to use the "Code" tags.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Risu,
Welcome to the Ranch.
In future, while posting code, please UseCodeTags
 
Risu Suzuki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for adding the code tags. This was my first post. Also, I visited the sscce.org. Thanks. I will do a better job next time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!