• Post Reply Bookmark Topic Watch Topic
  • New Topic

which layout will me  RSS feed

 
manikandan palanisamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my constraint is to place single image at center of the jpanel and to place several text label over the image.

another thing is when i zoom in the image, position must be retained.

which layout will help me to do this.

guide me in this issue.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by manikandan palanisamy:
my constraint is to place single image at center of the jpanel and to place several text label over the image.

another thing is when i zoom in the image, position must be retained.

which layout will help me to do this.

guide me in this issue.


I would go in for setting the image as the panel background (by tweaking paintComponent()). Then it doesnt really matter which layout to use.
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Have a look at Background Image On JPanel
 
manikandan palanisamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you friends for your efforts.

i tried with null layout .

it works fine.

thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!