Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jlabel.setbounds() in jpanel  RSS feed

 
yogessh chavaan
Greenhorn
Posts: 13
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I m trying to work with the following code in order to change the location of jlabel at runtime , but when i minimize the frame, the jlabels get set back to their original positions .
Could any one help please ? i have a frame , a jpanel on it and a jlable on jpanel which i want to position on mouse drag.

Thanks in advance !
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yogessh chavaan wrote:

What?But please follow standard Java coding conventions; variable names should start with a lowercase letter. the uppercase X doesn't conform to the convention.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!