HI there,
I'm stuck on a little problem, tryed a few things to work it out, a push in the right direction would be great.
Basic JFrame with a JButton, i have the picture and the text on top of it, problem is I don't want that default blue button that the image and text sits on, how can one get rid of it?
Cheers
[code]import java.awt.*;
import javax.swing.*;
public class JButtons extends JFrame {
public static void main(String[] args) {
new JButtons();
}
public JButtons() {
super("Using JButton");
//WindowUtilities.setNativeLookAndFeel();
//addWindowListener(new ExitListener());
Container content = getContentPane();
content.setBackground(Color.white);
content.setLayout(new FlowLayout());
JButton button1 = new JButton("Java");
JButton button = new JButton(new ImageIcon("one.jpg") );
button.setText("Centered Text");
button.setHorizontalTextPosition(JButton.CENTER);
button.setVerticalTextPosition(JButton.CENTER);
content.add(button);
pack();
setVisible(true);
}
}[/code]