I need to determine the current state of the Shift key, but at the time I need the state I don\'t have an InputEvent object around.I need something like java.awt.Toolkit.getLockingKeyState(int) that w
I\'m trying to close a frame yet open a new frame. My application has page A, a JPanel with some controls and a specific button, and when the user clicks the button, I want page A to disappear and pa
I have a slightly complicated case where I do not have source code (or the compiled class) the swing application that I am trying to run automatically.
When I started programming with the JDK6, I had no problem with text components, neither in AWT nor in Swing.
first of all, this is more or less my first GUI and ive learned Java for not more then a week, so it might contain some serious programming errors.
For a hw assignment, we were supposed to create a custom button to get familiar with swing and responding to events.We were also to make this button an event source which confuses me.I have an ArrayLi
I am trying to create a simple notepad in Java. This is the code that I think contains the problem: if(cb.getSelectedItem().equals(\"Plain\")){
I\'m new to Java awt, so I am having trouble with setting up panels. I have one giant panel, which needs to hold 3 panels inside (photo is attached at the bottom). One will go on top(1), second one wi
I am facing a weird problem when using MicroSoft JVM to run my Applet. I have an AWT panel with 4 textfields which is added to a dialog box. Everything goes fine until I enter a decimal value into the
I\'m making a custom button in Java that has two states, mousePressed, and mouseReleased.At the same time, if I wanted to reuse this button, so that other event listeners can register with it, are the