• 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: 59429
187
  • 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
 
mooooooo ..... tiny ad ....
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!