Skip to content

Tag: swing

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 windo…

Cannot display JComboBox in JTable with TableModel

Below code to display a JTable with 3 columns, which respectively contain a JComboBox, a String and a double, and which should display yellow. The problem is that I cannot get the JComboBox in the first column to display as … a combo box; instead I get a String saying “javax.swing.JComboBox……

How can make a JTextArea?

I am trying to make a textArea for my input, but it broke my code. It does not draw the characters or grid any more, and all I see is a small button in the top right corner. Screenshot of output Here’s my code with the JTextArea: What can I do to make my code work with the JTextArea? I

(TXT File) Java GUI Login

I want to login from a text file called “members.txt” which using 2nd (username) and third (password) line with “/” delimiter. But when I run it, it seems they recognize all of text file’s account in sequence. Please help. Here’s my code. Answer Actually you are reading eve…