Bookmark Topic Watch Topic
  • New Topic

Truncated Text in Label

 
iyappan sankaran
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi
i have a probelm :
In windows the text in Jlabel is displayed correctely like

HI Iyappan

while in solaris the text get truncated and displayed like this

HI Iyp. . .

i attach source
. . .
getContentPane().setLayout(null);
l1=new JLabel("HI Iyappan");
getContentPane().add(l1);
getContentPane().add(l2);
l1.setBounds(100,10,40,15);
. . .


urgent pls give solution .
 
John Kelty
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
Perhaps the font that gets used on Solaris is larger than the one on Windows. Try increasing the size you specify in setBounds and see if that helps.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Don't post questions multiple times (or in multiple forums)...

other post
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!