Java Swing UI container class that can be displayed anywhere on the user's desktop.
Questions tagged [jwindow]
100 questions
24
votes
3 answers
How can a Swing JWindow be resized without flickering?
I am trying to make a custom UI based on a JWindow for the purpose of selecting an area of the screen to be shared. I have extended JWindow and added code to make it resizable and to 'cut out' the centre of the window using…

willjcroz
- 2,106
- 1
- 25
- 33
16
votes
5 answers
Center Swing Windows
I'm developing a Java Swing application. How can I make it so that when the program itself and any other windows open they come up in the center of the screen?

Travis
- 161
- 1
- 1
- 3
15
votes
2 answers
Java Swing JWindow application crash
If I use JDK1.8_40 or newer (Oracle or OpenJDK do the same), the following code together with a dialog resize will crash the application (tried Windows 7, x64, 64bit JDK)
import javax.swing.JButton;
import javax.swing.JDialog;
import…

Vlad Topala
- 896
- 1
- 8
- 34
10
votes
4 answers
Implementing auto complete in Java - am I doing it right?
Algorithm
Start
Input a city name - partial or complete
If the user hits enter , take the text from JTextField
Begin brute force search.
If the matches are found, put them in a Vector and put it in a JList
If no match is found, add a String "No…

An SO User
- 24,612
- 35
- 133
- 221
10
votes
5 answers
Disable JFrame minimize button
I am developing a tool for my laptop. I want to disable minimize button in the JFrame. I have already disabled maximize and close button.
Here is the code to disable maximize and close button:
JFrame frame = new JFrame(); …

Pankaj Kumar Thapa
- 131
- 1
- 2
- 6
7
votes
2 answers
Non-opaque JButton background in non top level window becomes opaque?
Before you read, here are some clarifications on what the question is about:
The SSCCE is designed for Java 7. It would be possible to use sun.*.AWTUtilities to adapt it to Java 6, but it does not matter to me how it works on Java 6.
The faulting…

Tadas S
- 1,955
- 19
- 33
7
votes
1 answer
UI freezes after child window closing until first click
I'm writing a drop down component with colors for toolbar. So I've taken ideas from 'Swing hacks' book, changed conception a little bit and added Swing's standard JColorChooser to drop down. The behaviour shold be following: I click a button and a…

Stanislav
- 425
- 1
- 5
- 14
4
votes
0 answers
Buttons in JDialog not clickable when it's on top of other two modal popups
I have a swing application.I have a Window which should be showed on clicking of few text fields.(It's like a virtual keyboard with few keys).
That window is created using
Window wdw= new JDialog();
It's set to modal as well. ((JDialog)…
user2094311
4
votes
2 answers
Resizing FlowLayout panels
I'm trying to create a JPanel that uses the FlowLayout. This panel is placed inside of a container using BorderLayout. This container is then added to a card using CardLayout. I would like the panel using FLowLayout ot be a small box in the bottom…
user3255328
4
votes
4 answers
Can not edit the text of a JTextField inside a JPanel within a JWindow
This is in continuation of my previous question where I asked how to place something in the system tray.
After some help from the community, I could do that. However what I am unable to do is to change the text of the JTextField in the JWindow. …

An SO User
- 24,612
- 35
- 133
- 221
3
votes
2 answers
Using JWindow for a floating tool window causes the owner window to "flicker" when clicking into the floating window
Background Information
I would like to build a tool/palette window (also called a "floating" window) in Swing with Java Version 1.6.0_26. I thought a JWindow is the best pick, and also the Swing documentation points out to use a JWindow for such…

It's Leto
- 968
- 4
- 17
- 25
3
votes
1 answer
Java like Window Navigation in WPF
I am a Java developer, and for user interaction I create a universal JFrame and has a JPanel container in it, and I swap that container with the other panels I created.
I started to develop WPF applications but I cannot find how this can be done.…

Mustafa
- 10,013
- 10
- 70
- 116
3
votes
5 answers
JWindow alway on top not getting focus events
I have a jwindow(set to be always on top) that you can click to get a pop menu. If the user right clicks the window it shows the pop menu but then if the user clicks any other window(such as firefox) pop menu does not disappear.
I tried to fix it by…

Hamza Yerlikaya
- 49,047
- 44
- 147
- 241
3
votes
2 answers
How can I minimize/iconify a JWindow in Java?
My app has a JWindow that needs to be minimized when the custom minimizer button clicked.
Please reply if anyone knows how to minimize a JWindow. I have searched a lot but couldn't find any suitable method to minimize.
I know how to minimize a…

Ahmadul Hoq
- 705
- 5
- 14
3
votes
1 answer
How to Show Only plain Message in Java without any Ok or Cancel Option?
I want to show some Message at run time in my app without giving any option in Message Dialog Java swing , and my app also run with this showing message. So how can I do that?

Jay
- 1,235
- 10
- 28
- 49