• Post Reply Bookmark Topic Watch Topic
  • New Topic

Positioning a jButton on the far right of a JPanel using Mig layout  RSS feed

 
Nate Lockwood
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JPanel that goes across my application something like a status bar. In the panel I have 3 pairs of components a JLabel and a JTextField. I also have a JButton which I want to position near the far right or east in the jPanel.
I've tried several criteria for the Mig layout when adding the btnStartPause to the JPanel but it always is close to the component on its left. I use Java7 EE, with Eclipse Keppler and Builder on Ubuntu 12.04 but the Mig layout is done by hand.

Any suggestions would be most welcome ....
 
Randall Twede
Ranch Hand
Posts: 4683
8
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know what Mig layout is so this might not help, but in my menubar i do the same thing like this:
 
Nate Lockwood
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry to say it does nothing, even after I tried a few variations.

Thanks for your reply, though!

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!