JTree - problems with names of elements

Advertisement
October 11

I have a Jtree thats populated with expandable elements. These elements are loaded on startup, but some of the elements don't get their full names, just i.e "dem..." instead of "demo3". WHen I expand the node, the full name appears, and remains.
Anyone know what this could be?
The problem is really often associated with nodes with names containing "m" ..

Advertisement

Replay

By default the tree node renderer is JLabel.
It look like you are not using pack() or validate().
It depend also the layout manager you are using.
In one word, it seems the JLabel has dimension too short.
Can only show 3 to 4 char. that is why "demo3" show as "dem..."
Try have some node name like "WWWWW", if you see "WW..." or "WWW..."
Then that is the problem. ( Not as you thought: only "m" has problem )

View 5 Replies

Tags:

  1. B8000_A422_000_085_140402_WW_WIFI
  2. Bbm channels how to add on 9300
  3. migration error on macbook pro
  4. time capsule 500g default ip address
  5. download intex cloud fx pdf opener
  6. set cfl in udf text box in sap
  7. f110 RFFOEDI1
  8. 30LF
  9. 8QYE
  10. meangdl
Copyrights 2019 Fcffair BigData Resource, All rights reserved