Skip to content
Advertisement

Tag: user-interface

java gui help needed

I need some help with gui in java. I am an absolute beginner with java and programming. I copy pasted this code in BlueJ and I didn’t get the desired results and this is what showed up in the terminal window: Device “Mobile Intel(R) 45 Express Chipset Family (Microsoft Corporation – WDDM 1.1)” (.DISPLAY1) initialization failed : WARNING: bad driver

Java GUI Calculator

My JTextArea does not display and no errors or problems shows up. It’s a Java GUI Calculator. Main class code: Calculator code: Any suggestions on improvements to the code? Answer You’re adding your JTextArea, text, to your screen JPanel, but you’re adding screen to nothing, and so it makes complete sense that the JTextArea won’t show. You should add the

How can I remove border on JLabel?

So I am trying to start a graphics program, where I have a JFrame that holds multiple JPanels. The JPanels need to combine to create 1 image, however when I run my program I see borders around the images. I cannot quite distinguish if the border is caused by the JLabel that holds the image or if it is because

JUnit Tests for GUI in Java

I would like to write test cases for a GUI. I want to know how do you simulate a click of JButton, or how do you extract the elements of a JTable. For the purpose of this, I have built a simple GUI that increase the count by 1 if the button is clicked and the JTextfield is empty, but

Advertisement