• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to refresh the dispaly in Swing

 
Ashish Sarin
author
Ranch Hand
Posts: 444
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making an application in which there is a Jlabel and a few JButtons. At the click of JButton i have to change the JLabel. What will be the best way of reflecting the new JLabel ?
regards
ashish sarin
 
Francis Siu
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ashish
how to refresh the dispaly in Swing
You can call the repaint() method
Can you explain the following statement clear?
What will be the best way of reflecting the new JLabel ?
 
Ashish Sarin
author
Ranch Hand
Posts: 444
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. let me put it this way: I have a JRadioButton and a JCheckBox. When the user presses a button 'Show Check Box' then the user should see the JCheckBox ONLY. & when user presses the button 'Show Radio Button' the user sees JRadioButton ONLY. how i should go about implementing this ?
regards
ashish sarin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!