I'm writing a Swing application that needs to function either as an applet in a browser or as a standalone application, i.e. it may be contained in either a JFrame or a JApplet.
In this context, I'd like to display a custom modal dialog box to the user (i.e. a complex dialog with a custom layout and logic, not just one of the simple JOp...
Requirement:
I have a list of strings displayed in the ComboBox. Each of these Strings can have some properties. These properties are displayed in PropertyTable. ComboBox's selected Item's properties are displayed in the table. In addition, we use PropertyTable for editing or setting property values to the selected item in the comboBox. ...
Is there a better package or external library out there that does a better job than javax.swing at resembling the native Windows look and feel? I want my Java GUIs to resemble the forms I create using C# and the .NET framework. Thanks.
...
How can I get chosen line from JTA ?
...
Hi,
I'm fairly new to Java and I've been having some difficulties with Swing. I'm trying to create a very simple GUI program which should be create a set of buttons but my code doesn't work.
Here's my code;
myPanel = new JPanel();
JButton myButton = new JButton("create buttons");
myButton.addActionListener(new ActionListener() {
...
Hi,
I'm trying to create simple GUI program in Java and I couldn't find a proper solution to error cannot refer to a non-final variable inside an inner class defined in a different method.
Here's my small code so far;
myPanel = new JPanel();
JButton myButton = new JButton("create buttons");
myButton.addActionListener(new ActionListen...
This is what I currently have but its not not showing the results in two textareas..
Right now all it shows is one textarea with Odd numbers only. I'm not sure why the even numbers wont show. Any help is appreciated Thanks!
static TextFileInput inFile;
static String inFileName = "lab12.txt";
static JFrame myFrame;
static Contai...
For a custom TableModel, I am overriding isCellEditable, which is returning true always.
I am also overriding setValueAt, but don't know how to use the method, so that, JTable reflects the changes done by editing.
Below is the modified code for PersonTableModel :-
class PersonTableModel extends AbstractTableModel{
public int getR...
hey i am writing a simple java swing program. but when i draw the frame with polygons drawn from a for loop an exception occurs.
the for loop:
for (int i=0;i
g.drawPolygon(p);
}
x+=75;
}
y+=45;
}
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap spa
ce
at java.util.Arrays.copyOf(Arr...