Skip to main content

All Questions

Tagged with
1 vote
1 answer
71 views

How can I do a progressive bar with JProgressBar from Swing on Java?

I'm a beginner on parallel computing. I've been working on Java in Apache Netbeans. My recent work was about semaphores, using the Semaphore and Thread Java classes, in that sense, I had to make a ...
ruper's user avatar
  • 13
0 votes
0 answers
36 views

Swing GUI Experiment: Gap Issue with Panels Using SwingUtilities.invokeLater()

I am experimenting with SwingUtilities.invokeLater(). When i run the code, both the blue and magenta panels do as expected, moving down by 1 pixel every 10 ms BUT when bluePanel.getY() == 600, the ...
Spektra Lami's user avatar
0 votes
2 answers
72 views

Interrupting thread with GUI button in any place of code

Lately I was working on my code which automated many tasks, for example finding path to certain target (by A* algorithm) and moving accordingly through all found nodes in 2D map. I was trying to ...
Thorvas's user avatar
  • 73
0 votes
1 answer
32 views

Problem in adding Image Icon to combined charts in Java Swing GUI

I created 2 graphs and displayed them in one frame. Now I want to add Image Icon. However there is a problem with frame. I know that I have not been used any frame. However is there any way to add ...
whydon't's user avatar
0 votes
2 answers
41 views

Issue with Threading in Java Swing - GUI Thread not Working as Expected

I have a Java console-based application that manages products. I'm trying to integrate a Swing-based GUI into this application. The goal is to have the GUI operate independently through threading ...
Dhanuja Thishakya Samaranayake's user avatar
0 votes
0 answers
42 views

How to stop a thread from opening a JDialog modal in Java Swing?

So I have two modals. One modal is "Main dialog" where I'm opening "Tables dialog" through click on a button or through thread every X seconds. Everything works fine if I'm not ...
Async Futura's user avatar
0 votes
1 answer
144 views

Java Socket Multithread File Transfer getting stuck after upload

I've had implemented a server-client program using Java Socket and multithreading. The programm allow the clients to send files to server, list files and download that files. But I'm having an issue, ...
Carlos Curcino's user avatar
0 votes
1 answer
123 views

Java Socket server accepts only one request and stops receiving data

I am making a Client-Server Java Swing application where I need to send requests through ObjectOutputStream. I make one request from LoginFrame to check if login/password is correct, server receives ...
Dabchinsky's user avatar
1 vote
2 answers
104 views

Java Swing – Synchronizing resources for animation threads

I'm building a game in Java and I need to synchronize the animation executions. Currently they will occur simultaneously, while accessing the same data. I'd prefer that the animations stack up, and ...
Reilas's user avatar
  • 6,144
0 votes
1 answer
42 views

Must JTextField.getText and JButton.addActionListener be Executed on the EDT

Should I assume that the following program is wrong because lines x and y (at the very end of the main method) are not executed on the EDT? public class Temp { private static JButton button; ...
Jack Straub's user avatar
0 votes
0 answers
81 views

How to fix UI blocking when loading many items in a JMenu

I have a JMenuBar for my Swing app which helps the user carry out some common tasks. One of the JMenus in the menu bar is a "Font" menu, which loads all of the system's available fonts and ...
TisLeo's user avatar
  • 25
0 votes
1 answer
101 views

How to deal with concurrency in Java EDT and background worker thread?

I am making a Java Swing application. Here is a simplified program logic: public class Data { //Data. } public class CustomPanel extends JPanel implements MouseListener { private Data ...
my_dear_doctor's user avatar
0 votes
0 answers
110 views

Game loop implementation using Java Swing and Multithreading concerns

I wrote a basic Engine class for a Java 2d game but I'm not sure about multithreading problems though it works good. I decided to run game loop in another thread to avoid the repaint() method of Swing ...
magister's user avatar
0 votes
0 answers
22 views

How to log the time it takes for a thread to die on a swing EditorPane each second?

I am working on a GUI program that has a "start" button and when pressed it starts a botThread and the start button turns into a stop button. Pretty simple so far. Now when I press on stop, ...
smilly's user avatar
  • 27
0 votes
0 answers
57 views

My buttons only appear when I click them or my cursor is over them

First of all, sorry for my English! I am creating a videogame as a beginner, and I have four buttons, but I dont know why I can only see them when i put my mouse over them. Maybe is because I have a ...
Paula Rodríguez's user avatar

15 30 50 per page
1
2 3 4 5
119