Swing is the primary user-interface toolkit in Java and is shipped with the standard Java SDK. It is contained within the package `javax.swing`.

learn more… | top users | synonyms (2)

-1
votes
2answers
22 views

Illegal start of expression java frames

This small code in java is giving me 4 errors. I dont understand what they mean. Please help me. class Frames extends Frame implements ActionListener { Frames() { JFrame jf = new ...
0
votes
2answers
14 views

How to make filterable to jtable record using netbeans ide

There are many rows on above showing jtable. I want to filter record by short code. If I type short code like 1234 it should be display only short code 1234 associated row on jtable. Thanks
3
votes
0answers
26 views

Assign the EDT (Swing Thread) to a specific CPU core

For a realtime java application with constantly updating UI changes, the EDT could possibly starve other business related processing threads. Is there a way in a multi-core processor assign a specific ...
0
votes
2answers
25 views

get value jtextfield from another class to actionperformed method

I have two class, one is for swing and main class, one is for actionperformed method //class swing package system; import javax.swing.*; import java.awt.event.*; public class GUI{ JFrame frame = ...
1
vote
1answer
13 views

Root immediate child nodes icons not visible when hiding root

I have a JTree structure as shown below. I have Icons that appear whenever a node has child nodes, which is working properly. My problem is that I need to hide the ROOT node. When I hide the ROOT ...
0
votes
1answer
20 views

Is there an API to help me mimic the notetaking I already do in excel?

Here's what I need in terms of functionality: multiple columns the ability to write paragraphs in a cell insert a new row under the one currently in preferably options to format I don't think a ...
-1
votes
0answers
25 views

How to get focus on a component in a class that extends JPanel?

I have a class named SongBox that extends JPanel. Inside it I have a field called songTitleBox. This can be focused by other components in class but not from outside. Do you have any ideea and ...
0
votes
1answer
25 views

Components misaligning

I know I already asked this question, but due to my mistake in the example code and failure to actually ask the question, first few hours have passed and I rarely get any new comments or answers to ...
0
votes
1answer
56 views

how to highlight separately

I'm trying to highlight the errors of the fix message sent from client side. However, when doing so it will not follow this algorithm. If there is an error in the fix message which is just a string, ...
1
vote
5answers
34 views

readding removed panel in jframe

Let me first of all explain me problem, I have a jpanel pnlBttns in my frame in the first view, which has 2 buttons as you can see in the image. When clicked on Edit Video, this jpanel is removed, ...
1
vote
2answers
22 views

Java - Get var information from another JDialog

I've got a JDialog with a textField and a button. If I press the button and the textField is empty, it prints an error message. But now I want to open a new Window (JDialog I guess) with the ...
0
votes
0answers
27 views

Using threads in JApplet

I'm currently busy with a JApplet doing HTTP POST request to a php script in order to upload images. The current program's basic architecture is : UploadThread extends Thread, a class basically ...
7
votes
4answers
85 views

How can i create a complex Button shape?

I have a frame with an image covering it, And i want that every time some one clicks on a different object in the image , it will act as a button and do something. The problem is , Is that those ...
1
vote
2answers
22 views

How do I change focus within ConfirmDialog?

I have a ConfirmDialog that pops up asking the user to enter their password. I inserted a JPasswordField into the dialog to conceal the password. That all works fine. The issue I'm having at the ...
2
votes
2answers
46 views

Coding a game of Pool in Java - how can I define the balls and move them (via Graphics g)?

My plan is to design a simple game of Pool in Java. OOP makes the most sense here for the balls. All the balls have the same functionality, so because of that it would be a good idea to make a Ball ...

1 2 3 4 5 2008
15 30 50 per page