Relative Content

Tag Archive for javauser-interface

How to fullscreen in java

Hello, i want to ask somthing about GUI in JAVA, how can I make my frame fullscreen in the GUI because when I use MAXIMIZED_BOTH, my components don’t light up, it seems like it doesn’t follow, it just becomes fullscreen but the components don’t appear in the middle, I would like it if I minimized it still the outcome

Can’t find the solution of JfileChooser

Bro how to change the icons of packages in the JFileChooser interface, can I do that or not👊
the default blue is pretty ugly I would like to change one
If someone has the idea plz tell me🫰

JAVA, How to make main function wait with executing code until JButton is pressed

I am a beginner, and i need help with my code that creates GUI. In main function, i use default constructor for class GUI that creates a frame with menu. Then i want the main function to wait with executing the rest of the code (which will start a simulation) until user presses START JButton in the GUI frame. How can I do that without using any loop? Below is my code, kinda long because of the GroupLayout that i use

GUI program java, a converter from Celsius to Fahrenheit

I was asked to Write a GUI program called SwingTemperatureConverter to convert temperature values between Celsius and Fahrenheit. User can enter either the Celsius or the Fahrenheit value, in floating-point number. And the Hints: To display a floating-point number in a specific format (e.g., 1 decimal place), use the static method String.format(), which has the same form as printf(). For example, String.format(“%.1f”, 1.234) returns String “1.2”.

a recursion error but i do not have recursion

i have a client-server architecture game. it’s designed with swing GUI, i have a problem in the game class, the class is supposed to show the 3 players’ names and scores, each time a player answers it should update the jLabel for that player