• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree Node - moving to left in editing mode  RSS feed

 
Sainath Veepuri
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have created a JTree with my own custom render and editor class.
It works fine, but the only thing that worries me is that when I try to edit the node, the nodes moves/aligns to the left by a few pixels.

FYI : The tree is in a JScrollPane.
The cutom editor has two JLabels & two JTextFields on it.
This issue is seen when try to edit the JTextFields.

Any suggestions please.

Thankyou,
Sai
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!