Questions tagged [swingutilities]
121 questions
0
votes
0 answers
Why JFrame gets stuck until the operation is finished?
I've created a JFrame with a JButton "abort".
This JFrame shows the status of an operation.
Let's say that function operation() contains the code of the operation we want to run.
While the code of function operation() is running I can't click the…

user5513205
- 3
- 2
0
votes
1 answer
Java Swing ProgressBar update while computing
There are some example for similar question
(Progress Bar Java) and (Java uploading percentage progressbar thread) but didn't understand how to make it work for my code.
My main has 2 panels one over the other (one of which is a tabbedPane with 2…

Benoit
- 363
- 6
- 23
0
votes
1 answer
What exactly does the call to the SwingUtilities.invokeLater() method into the main class that perform a Swing application?
I am pretty new in Swing and I have the following doubt about this main class that start a Swing application founded on an tutorial project:
package com.caveofprogramming.designpatterns.demo1;
import javax.swing.SwingUtilities;
import…

AndreaNobili
- 40,955
- 107
- 324
- 596
0
votes
0 answers
Java SwingUtilities.invokeLater() illegal start of expression error
I have come into an unusual problem. I've submitted my code for grading and it seems that when my professor compiles/run my Java program it wont run on her computer. I've tried on both windows and Mac machine and it runs and compiles just fine. I am…
0
votes
1 answer
Swing Create Loader in Thread non blocking GUI
I have kind of a problem with showing loader during a heavy data loading by main program. Below there is a class called SplashScreen which displays .gif animation of loader.
public class SplashScreen extends JWindow {
public SplashScreen() {
…

Lukasz Ciesluk
- 718
- 1
- 17
- 29
0
votes
1 answer
Java Swing show a BusyIndicator during time consuming task
My problem seems to arise from the way Swing is using threads internally. I want to show a busy indicator when the application does a time consuming task, which i call a Spinner. I have a Swing JDialog and adapted the code from the Oracle…

Stimpson Cat
- 1,444
- 19
- 44
0
votes
2 answers
DefaultStyledDocument.styleChanged(Style style) may not run in a timely manner?
I'm experiencing an intermittent problem with a class that extends javax.swing.text.DefaultStyledDocument. This document is being sent to a printer. Most of the time the formatting of the document looks correct, but once in a while it doesn't. It…

Paul Reiners
- 8,576
- 33
- 117
- 202
0
votes
0 answers
spinner image on JFrame while UI are creating
I have an application that after successfull login (on a JFrame), starts to create the main frame (class MainUI that extends from JFrame). That MainUI class contains a JTabbedPane (which each tab is a class that extends from JPanel) and, on…

jotapdiez
- 1,456
- 13
- 28
0
votes
0 answers
Resetting toggle buttons
I am designing an elevator for my software engineering class. I am using toggle buttons on the elevator cars inside panel for floor selection. I cannot figure out how to toggle the button off if the current floor equals the button being toggled. I…

user1184034
- 71
- 3
- 11
0
votes
1 answer
invokeLater method in swing
Hi i have implemente invoke later method in below way but still after i click on the next button i am not able to get response from the Close button. Please point out hte mistake in my code, Or please tell me if the behaviour i am expecting is…

Katiyman
- 827
- 2
- 12
- 32
0
votes
2 answers
how to change JLabel color
i have problem to change JLabel color. i am using three JLabel variables . i am putting mouse event on this JLabel variables. i run the and both are changes color when i am entring mouse on JLabels. i whis is that, at the time one JLabel change the…

kusama
- 389
- 3
- 13
0
votes
4 answers
How do I run Swing UI on two threads
I have a scenario where I need my swing UI to run on two different threads. I have a laptop where I will my application will run. There is a Button on clicking which an presentation should start at the other Screen that is attached to my laptop.
Now…

ItachiUchiha
- 36,135
- 10
- 122
- 176
0
votes
2 answers
Swing UI Delay adding and removing elements
I have a form stored in both the inputWidget and the outputWidget. The buttons addInput and addOutput will show two different forms in the secondaryInOutPanel.
However there is a significant delay when moving between the form by clicking the…

kyleED
- 2,327
- 2
- 18
- 23
0
votes
3 answers
Jcalender in Swing Java
// I am creating customize jcalender in swing
//I am facing problem regarding dates set
//i.e actual month is start from tuesday and it is starting from wednesday
// I am finding problem regarding setting values in calender-model
//Above code is…

Dharam Chag
- 169
- 1
- 2
- 13
0
votes
1 answer
i cannot change two progressBar immediately
I want to change two progressBar immediately. but I can't.
what I'm saying is..
nextButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
…

Chang-Uk Shin
- 61
- 11