Category "swing"

Fractional Swing UI scale not supported in Java under Linux

I would like to influence the UI scale of a standard Swing application with default L&F. Unfortunately scaling factor 1.0 is too small and 2.0 is too big. I

I don't know why the columns swapped in JTable

This question may seem silly to you, but pls help me. My program works, but slighty incorrect. In the image1 you can see the location of the data in the databas

How to delete table records on cascade without the program freezing?

this is my delete button method, it takes the college name as a primary key and deletes it so the whole record gets deleted. However, it can't be deleted becaus

How do I position Eclipse type hierarchy while editing

Eclipse for Windows 64-bit machine - Version: 2022-03 (4.23.0). I am used to having the Type Hierarchy (?) in a tab on the right side of my screen. It was like

How can I set up my keybinds in such a way that the character does not pause between inputs?

I'm attempting to make a simple bullet hell game and am struggling to make smooth movement mechanics for the character. Here is my current code: package bulleth

Swing JFrame rendering a webpage with embedded video shows a white page and throws IOException with "invalid URL"

I wonder if I do some mistakes because I do not get the content of the webpage displayed on the JFrame. Instead, I only get a white page. The error I got was: j

Search data for JTable using PLSQL stored procedure

I have a JFrame in which I have populated some data by stored procedure. Now I want to search the data through a JTextField. I used a RowSorter filter method b

Adding a custom Swing component in a JFrame

I've created a simple JTextField (this will have a mask after and I'll use this in multiple projects) and I'm trying to add in a simple JFrame, however, when I

JFrame not "disposing" on actionperformed method

Background: I am creating a login browser page before my main UI(myGUI) page is displayed. I am using a HashMap to store the correct username and password combi

How can I compare User and password input to a text file?

Heyoo! I'm creating a simple login form using the swing package in java and I am having trouble in checking if the username and password is correct or not. this

Prevent a JComboBox popup from appearing. Passing InputVerifier

Given the following scenario: one has a JComboBox and a JTextField the latter has an InputVerifier providing its own error message. the textField is the current

Dynamic JFreeChart for custom X-Axis values

I make a JFreeChart for displaying values from serial port. It is working well, but I want to make X-axis movable from right to left. It means when plotting the

Searching data in the JTable using

I have a table that I post with a database connection. I am searching the table, but after searching, selecting the row and bringing the result to the textbox r

The method setColor(Color) is undefined for the type JFrame

Error code shown below : The method setColor(Color) is undefined for the type JFrame package task3; class Execute { public static void main(String[] a

JLabel not displaying image after choosing from jFileChooser in java netbeans IDE 8.02

I am using NetBeans IDE 8.0.2 to create my project application. I have created my application's signup page using multiple panels in CardLayout. For users to up

Getting out of a loop, but it needs to remain running?

I've made a circle move around (in a circle), but now my application won't move on to the other tasks as I got myself caught in a loop. How do I get out of this

Getting out of a loop, but it needs to remain running?

I've made a circle move around (in a circle), but now my application won't move on to the other tasks as I got myself caught in a loop. How do I get out of this

Is there any way to return the color of a JTextField?

For example if you set the color of a textfield as Color.RED, is there a method to actually return that color? I found a method in the Oracle logs called getCar

Java Swing - How can I make a frame "mandatory to interact with"?

I'm making a game in Java Swing. Every time the player levels up I display a new frame on top of the one containing the gameplay which has some options on what

How to make a vertical side menu, Jmenus in swing?

I'm relatively new to java swing, so I don't know to change the menu component in swing with a vertical one.