I\'m currently working on a group project for a college course, and I\'ve hit a bit of a stumbling block. The program we have decided to implement is a Peer-to-Peer chat client
Try JFrame.repaint()
. That should work. If you want custom designing of your JFrame
then you will have to override paint()
method of JFrame. Additionally, if you want each component to be custom designed you will have to override the paint()
method of each of your GUI component. Couple of things to note:
paint()
for any GUI component. You only need to call repaint()
.JButton
, JTextField
...], you do not have to call their repaint()
method. The parent Container
's [JFrame
, JPanel
...] repaint()
will do the job.