Bookmark Topic Watch Topic
  • New Topic

geting the Label from i JPanel????  RSS feed

 
Aleksandar Mitrev
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have problem of how to get the string from the label that I before that put in a JPanel
I make a JPanel and I add JLabel example
JPanel panel = new JPanel();
panel.add(new JLabel("1"));
is there a method that I can get the JLebol and the string, that in the case up is 1
something like panel.getLabel();
is there method like that I have search the sun documentation and I did not find
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question in multiple forums. Your prior question was moved from the beginners forum to the Swing forum, where it turns out you had already posted the same question. Both of these were answered, so someone took the time to help answer a question that had already been answered. Now this question is also a duplicate of something in the Swing forum.

Please continue Swing questions in the Swing forum.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!