I don’t know what I did, or what went wrong, but a change I made at some point in the last while has made my JPanel completely invisible. The JFrame it’s nested in still changes in size to house it, and I can still toggle the content in the combobox. In my desperation, I tried replacing the content of the
Tag: jframe
How to create JOptionPane with multiple list selections and extract all the choices?
I am interested in creating a JOptionPane or any interactable pop-up Pane that contains multiple list selections. I also wish to extract the selections the user made. The code below shows an MRE where I generate two different JOptionPanes with list selections and extract the choice from each. Essentially, I am trying to combine the two. What one of them
How to make all images in Grid Overlay flush?
I am trying to implement a GUI for a maze-based game I created that meets the following specific conditions: The GUI itself has a set size and is not resizable (line 41) . The master panel (line 57) that contains all the maze images is scrollable. All maze image components are flush with each other. If maze is small enough,
Is there a way to hide all elements in JFrame
I’m currently working on Java application and I’m using JFrame and inside of JFrame i have some buttons, labels and textfields. I’m in need of hiding all the elements that are in JFrame. I don’t need to hide JFrame itself, only the elements in it so I can display some others. Is there a way to hide them all without
How to display data to a JtextArea in java with exact text alignment same from the txt file
When I append the data to the JTextArea in Java it does not copy the alignment. Answer There could be 2 problems at hand. If your original textfile is using Tabs instead of spaces to align its columns the way it does, you need to set the same tab size on your JTextArea component. See JavaDoc for setTabSize(int) Secondly, alignment
Why it will still appear “Incorrect account or password or user type” after I login successful? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I’ve tried but just can’t figure out why, thanks for helping if there
traverse an array in GUI Java
I am doing a questionnaire with questions and written answers. I need that when adding the answer, press the main button, tell me if it is correct or not and show me the other question of the array, until the array is finished. Here I upload the whole code. Answer You have the right idea, but you need to process
How to change the default JFrame Window color?
I am building an app for Windows using Java Swing/AWT interfaces in IntelliJ Idea. I am using a default JFrame to display my application GUI. However, I would like to change the default frame outline (window) colour to either transparent or custom colour. Here is what I am trying to achieve: This is the window I have: These two are
How can I access the same text area variable?
The code below works as such: User clicks the run button Program reads the file from designated location Program removes content from , including tags themselves Program …
Variables passes as null to another Java Frame in Netbeans
I am trying to take a value from MSSQL to a class. In my login GUI frame the variable passes exactly right, but when i pass that class object to another frame the name (String ograd) variable returns as null. Here’s the teachermanagement.java file: loginGUI.java file where i take variables from my MSSQL database with Button click, which works fine.