Posted: Mon Jun 10, 2013 10:16 am Post subject: Re: Java UI Help
Anyone know how?
Sponsor Sponsor
Zren
Posted: Mon Jun 10, 2013 11:49 am Post subject: RE:Java UI Help
Each of your Frame instances is using the method defined in the Frame class (or whatever subclass defined it). In order to draw differently for a specific frame, you are going to need to subclass the Frame class and override the paint method.
class NargleFrame extendsFrame{
@Override
publicvoid paint(Graphics g){
super.paint(g);
} }
Thing is, by overriding the paint method, you need to make sure to call super or the default behaviour (drawing all it's children probably) won't happen.