Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jacky Luk
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
 
Campbell Ritchie
Marshal
Posts: 55681
162
  • 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!