Skip to main content

All Questions

0 votes
0 answers
34 views

Custom popup don't always get focus

I try to basically implement my own combobox for Swing, because JComboBox has some behavior that doesn't suit my requirements and what I need to override is private, so... Anyway, I tried making a ...
UglyBob's user avatar
  • 267
0 votes
1 answer
153 views

Swing wait() and notify() on JDialog, the dialog does not show its components

I have a mouse listener that gets invoked when I move the mouse in the application window. In the MouseEntered method, I invoke a ThreadB as such: @Override public synchronized void mouseEntered(...
Housein's user avatar
0 votes
0 answers
124 views

How to link two components with a wire in Java Netbeans

I'm making a simulator in Java and I have a plugboard where I have to connect two components of the plugboard with a wire. I was thinking to make the plugboard where each connector to be plug is a ...
FDarfe's user avatar
  • 13
0 votes
0 answers
36 views

How to get Matisse GUI to show up my custom added components? [duplicate]

I'm making my really first "graphic" program in Java and almost all the components I used were added by dragging them into the NetBeans GUI, that's okay. However, I had to add some code into a new ...
RedEyedJealousy's user avatar
3 votes
0 answers
1k views

Java - Wait for component to be shown

UPDATE #3: After madProgrammer's suggestions, maybe the timed solution is the best. But no answer has been given to this strange behaviour. I understand the fact that components are not shown ...
Francesco Rizzi's user avatar
0 votes
1 answer
2k views

Java - Update size of component after resize event

I have this simple code: import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; import java.awt....
Francesco Rizzi's user avatar
5 votes
1 answer
2k views

What is a component's baseline in Java

Very simple question: What is a component's baseline in Java? The documentation does not provide an answer as to what the "baseline" is, just describes its use by LayoutManagers. Yes, the answer is ...
Max K's user avatar
  • 686
0 votes
2 answers
70 views

How can a JTextArea's properties be updated by an event?

I have made this simple text editor program but can't figure out how to change GUI component's properties while the program is running. Suppose this is a part of my Text Editor's source code: ...
Chaitanya's user avatar
  • 729
2 votes
1 answer
1k views

What determines component visibility in Java?

I'm writing a Java GUI program that uses a JFrame object and several JPanel objects. The JPanel objects use the paint() and repaint() methods, and some of the JPanel ojbects have JLabels and JButtons. ...
danger mouse's user avatar
  • 1,497
0 votes
1 answer
394 views

Loading Panel with Image in jFrame: Component must be non-null

Hello I'm a newbie here, I want to add pictures in my JFrame. I used the Grouplayout and tried to load my Image with help of this JPanel-Class. But when I use ".addComponent(Image)" it gave me the ...
Tom's user avatar
  • 3
2 votes
1 answer
1k views

Java JPanel repaint() issue?

I'm kind of new to GUIs. I created this simple app that paints an oval with different color every time a button is pushed. but when ever I call the JPanel's repaint() it doesn't just repaint the panel'...
GamefanA's user avatar
  • 1,653
0 votes
2 answers
2k views

Swing GUI doesn't update during data processing

I'm having a problem where my Swing GUI components aren't updating for me while the program is busy. I'm creating an image editor and while heavy processing is happening, I try to change a "status" ...
Nathan's user avatar
  • 1,347
0 votes
1 answer
548 views

Java Gui components do not appear in the JFrame

i have a strange problem which may a problem with eclipse that i use: i want to programm a calculator but the components which should appear in the Jframe, are not there! The textfield do not appears ...
user3133542's user avatar
  • 1,715
0 votes
2 answers
1k views

Java make components talk to each other

Let's say I have a gui, and the gui is composed of two parts where each part has its own class. So one class contains a JLabel. And second class contains a text field with a submit button. How would I ...
Quillion's user avatar
  • 6,486
3 votes
1 answer
2k views

Java own components visually connecting per drag and drop

I'm working on a software solution for a small workflow editor. For this I created an own JPanel with some functionality like deleting itself or editing the main information. This is how it looks: ...
Kingalione's user avatar
  • 4,275

15 30 50 per page