jlabel
JLabel won't change after setText in Java
I got a JLabel Scoresp1 which I want to change using Scoresp1.setText(mijnScore + \"\");. But the text on the JLabel stays the same.[详细]
2023-04-13 00:01 分类:问答Why isn't this int incrementing?
I am stuck on probably an easy problem, but I really can\'t find why it isn\'t working. I am trying to increase mijnScore with 1 each time the method gets called. But somehow mijnScore goes back to 0[详细]
2023-04-12 14:13 分类:问答Multiline Jlabel with specific HTML tag
I want to add multi line to my Jlabel; I do it with help of HTML, but in some situation I have problem with it, the situation is that I use special tag property like dir=\"RTL\" and ... . What should[详细]
2023-04-12 13:06 分类:问答JPanel or JLabel seem to be creating two labels instead of one for each object?
Please excuse me if this is a very simple solution or stupid mistake - this is my first time attempting to implement graphics in Java! :)[详细]
2023-04-12 05:12 分类:问答loading image in a JPanel
I have a JPanel (which I created using netbeans)and I need to load image in it, based on selection on previous page. Could anyone suggest how to do that. Also is JPanel the best way to do wh开发者_Sta[详细]
2023-04-12 01:53 分类:问答Make JLabel background transparent again
I have a JLa开发者_运维问答bel that changes its background color when the mouse enters it. The problem I have is that I want the JLabel to become transparent after the mouse exits.[详细]
2023-04-10 11:42 分类:问答why aren't my JLabels and JTextFields showing up in the JPanel?
I have a JDialog and inside it I have a JPanel that uses FlowLayout now I\'ve created 3 labels and text fields using the Netbeans GUI Builder, and I want to add 2 more text fields using code[详细]
2023-04-09 07:43 分类:问答Java JLabel text in middle of vertical axis
I have a JLabel that contains variable text in a certain location in my GUI.The problem is that the text gets displayed at the bottom of the space where the JLabel is located. This does not convey to[详细]
2023-04-09 04:34 分类:问答How to display JLabel text for 1 second?
I am wanting my error messages to display in a JLabel temporarily, then set the text back to \"\". But instead it looks like it just skips over setting the message. I\'ve stepped through the code and[详细]
2023-04-09 01:24 分类:问答Set JLabel Alignment right-left
I have a JPanel that separated to 2 blocks, in south block (layout) I have add a JLabel, In the label I want to Insert a string with this rule: (Name, Date, Time, In/Out)[详细]
2023-04-07 11:57 分类:问答