jbutton
JButton's border don't go away even when set the Border to EmptyBorder
I am designing a GUI using Eclipse on Mac, and I want to make the JButton to display only the Icon I set. It looks fine on Mac OS, but when I export it to a jar file, and rut in 开发者_运维百科on Wind[详细]
2023-04-11 10:32 分类:问答Java Swing completely rounded JButton (circle outside area can't be clicked nor visible)
I\'ve been trying to implement a completely free bordered JButton : Free shape as a border, as a solution is given in a previous thread : Rounded Swing JButton using Java[详细]
2023-04-11 09:54 分类:问答Detecting JSpinner button events
I need to create some JSpinner controls where I can detect the button presses, whilst using the current look and feel. I have found I can do this easily enough as follows:[详细]
2023-04-11 08:29 分类:问答Java (GUI) adding JButton multiple times?
Im learning Java and Im creating a memory type game where yo开发者_开发问答u have to find two equal cards.[详细]
2023-04-10 21:30 分类:问答Activating a JButton via keyboard
I have a JDialog with t开发者_如何学编程wo buttons: an OK button and a Cancel button. I would like the Cancel button to be activated by pressing Esc and an OK to be activated by pressing Return. Can s[详细]
2023-04-10 17:41 分类:问答Coloring a JButton in Java
I am struggling with a problem on coloring an array of JButtons. I made two arrays of JButtons: public JButton Speler1[] = new JButton[140]; //Player1[详细]
2023-04-10 17:21 分类:问答calling an actionlistener from another actionlistener
I have an actionlistener that fir开发者_开发技巧es when I click a button lets call it box, I have another actionlistener for another button call it restart.What I am trying to do is when I click a box[详细]
2023-04-10 13:03 分类:问答Issues with JButtons and ActionListeners
So I have a paint program with multiple JButtons, the only way i know how to relate that button with the action of that button being click is to do something like if (e.ActionCommand().equals(\"Label[详细]
2023-04-09 07:27 分类:问答make a JButton action audible with a "click" sound
Is there a built-in feature to make a Swing JButton audible.I am interested in a cl开发者_StackOverflow中文版ick or beep sound.I know I can invoke noise making code in the event handler, but I am spec[详细]
2023-04-05 10:42 分类:问答How can I set the size of JButton in an Applet?
I have an applet and I want to add a jbutton. The problem is the button is too big, I already used the setSize() method but still it doesn\'t work. Perhaps the setting of setSize could might be wrong.[详细]
2023-04-04 05:13 分类:问答