I have create an application that is a JFrame I have created a class that extneds Jbutton.
I have added the extended JButton to the Jframe but it hides it only appears if I roolover it or click it.
The JFrame adds the JButton as normal
getContentPane().add(MyButton);
In the JFrame I overide the paint method to draw an image
void paint(Graphics g){
g.drawImage(.........);
}
how can I make the Button appear.
thanks


Reply With Quote


Bookmarks