• 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: 57276
175
  • 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
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!