Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to keep an image at the top right corner of a JLayerUI  RSS feed

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd want to make an image stay at the top right corner, no matter
the size of the JDialog is changed. How do I achieve that?

Thank you
Jack
 
Marshal
Posts: 58366
178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on the layout you are using. In some, eg grid bag, you can set an anchor to north‑east.
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Depends on the layout you are using. In some, eg grid bag, you can set an anchor to north‑east.



What about miglayout?
Thanks
Jack
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!