Apr 30, 2003 #1 MoreFeo Technical User Joined Nov 29, 2002 Messages 547 Location ES Hi, is there a way to change the text size and color in a JLabel? Thanks in advance
Apr 30, 2003 #2 obadare Programmer Joined Nov 17, 2002 Messages 104 Location GB 2 ways: 1.label.setText("<html><h1><color='red'>" + yourtext); 2.label.setFont(new Font("Helvetica",Font.PLAIN,14)); label.setForeground(Color.red); Upvote 0 Downvote
2 ways: 1.label.setText("<html><h1><color='red'>" + yourtext); 2.label.setFont(new Font("Helvetica",Font.PLAIN,14)); label.setForeground(Color.red);
Apr 30, 2003 Thread starter #3 MoreFeo Technical User Joined Nov 29, 2002 Messages 547 Location ES thanks a lot, I'll try it at home. Upvote 0 Downvote