JTable becomes blank after executing update on table? [closed]

I am trying to write some software where when a user adds a new entry to a SQL database, my JTable showing the entries in the database updates. Currently, when the method updateTable(Object[][] data) …

How can I assign a value to my GUI attributes from a custom object? [closed]

I am trying to make a game similar to bitlife, and in my program the first scene is the main menu where it asks the user to enter firstname (textbox), lastname (textbox) and choose a gender (choicebox)…

Is there a way to stack date and time vertically in Vaadins DateTimePicker component?

For choosing some values of different data types in my UI, I use Vaadin’s DateTimePicker introduced in 14.3.x. I am wondering if I can somehow position date and time input fields vertically instead of …

Java move GUI panel While loop

I have a panel. I want to move the panel, inside a while loop, to the left and then to the right, after pressing a button and until a certain condition is met. But for this question let’s say …

Waiting for a task inside a thread pool using SwingWorker java

I’m simulating multiple Tasks inside a thread – when all of them should report to a GUI. So I have a unique form that has 4 Panels inside which should reply and do different Tasks.. they should each …

How to make non-border arrow buttons with Java Swing?

I’m using Java Swing to make a UI and the idea is to make it look like the native OS (in this case, Windows). I’ve used: setLookAndFeel(getSystemLookAndFeelClassName()); And everything is good so far,…

How to create moveable JPanel using BorderLayout?

I want to create a GUI with a sliding Menu. The menu is one of three JPanels organized onto a JFrame with BorderLayout. The Menu in question is on the west side. How can I make it so that the menu can …

java gui help needed

I need some help with gui in java. I am an absolute beginner with java and programming. I copy pasted this code in BlueJ import javax.swing.*; class gui{ public static void main(){ JFrame …

Java GUI Calculator

My JTextArea does not display and no errors or problems shows up. It’s a Java GUI Calculator. Main class code: import javax.swing.JFrame; public class calulator_main{ public …

Java and GUI – Where do ActionListeners belong according to MVC pattern?

I’m currently writing a template Java application and somehow, I’m not sure about where the ActionListeners belong if I wanted to cleanly follow the MVC pattern. The example is Swing based, but it’s …