swing tag

14 questions


1 answers
399 views
0
I want to do the process of placing the card down after pressing the button to place the Java Swing card down.

Sorry for asking you so many questions.Currently, when a pair is not established, a message is displayed to enable JButton by pressing JButton to hide the card, but the following code is added to JBut...

1 years ago

1 answers
380 views
0
I want to know why component must be shutdown and IllegalStateException occur in swing.

We are currently developing on-site using a swing-based library.Press the search button (SearchBox), select an item, and return to the caller screen to set the selection value.(I'm sorry that it's har...

1 years ago

1 answers
59 views
0
Specify and attach coordinates when labeling the swing panel

I'd like to set the label on the panel by coordinate designation in java swing, but I don't know.I would appreciate it if you could let me know the code as well.import java.awt.event.MouseAdapter;impo...

1 years ago

1 answers
117 views
0
I want to do screen transition with java swing.

I'd like to do a screen transition by clicking on label 1 in the code below, click on panel 1 to panel 2, click on label 2 in panel 2, click on label 3 in panel 3, click on label 3 in panel 3, and use...

1 years ago

1 answers
74 views
0
The paintComponent() will not be called even if you write paint()...

I'm making a simple game using swing, but I'm having trouble with the drawing process...I think I wrote the process of continuing to repaint components using parallel processing, but no matter how man...

1 years ago

1 answers
91 views
0
About Java Timeline

Counting starts at the beginning of the game, stops after 10 seconds, and game over screen cannot be displayed.package luna.sexydesign;import javax.swing.*;import java.awt.*;import java.awt.event.*;cl...

1 years ago

1 answers
108 views
0
I want to display the history of the button pressed by swing.

If I add Botton5 to the code below, how do I add a history of what buttons I have pressed when I press Botton5?import javax.swing.*;import java.awt.event.*;import java.awt.BorderLayout;public class Sw...

1 years ago

1 answers
110 views
0
JFrame application has gaps

I'm using JFrame to create a 2D game in Java, but when I start it, sometimes there is a mysterious gap between the right end and the bottom as shown in the picture.Tinkering with Layout didn't really ...

1 years ago

1 answers
117 views
0
About retrieving strings in textfield in java

JTextField text=newJTextField(Initial Value; I got the string in the text field with getText and found that I got the Initial Value.However, if you remove the 値initial value 」 string in the text field...

1 years ago

1 answers
107 views
0
move frames by keyboard input

When you press the arrow on your keyboard, you are creating a program where the displayed frame moves 10 times in that direction.The input of the keyboard is detected, but the frame does not move.How ...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.