• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cell size changes using custom editor

 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, this is probably a trivial issue, but i've spent hours on it and getting pretty frustrated. Could someone please steer me in the right direction?

Basically, I'm experimenting using the cutom editor from here:

http://download.oracle.com/javase/tutorial/uiswing/examples/components/TableFTFEditDemoProject/src/components/IntegerEditor.java

Things work fine, unless I set the lookandfeel to use "UIManager.getSystemLookAndFeelClassName()), then the font looks different than of the Renderer's font...and it seems that while in editing mode, that the size of the editing cell is slightly smaller than other cell. Non of these behaviors if I don't set the lookandfeel. Any ideas why?

Thank you in advance for your help.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you change the LAF before creating any of your Swing components.
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, LAF is the first thing that is set...even before initComponents()
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone try this out and experiencing the same issue as I did?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!