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
Tag: user-interface
How to Overcome Aliasing Problem Caused By ConstraintLayout Guidelines?
I am trying to reconcile the following two things: A) I want a precise, uniform, and clean UI with several identically sized buttons that correspond exactly to the underlying ‘grid cells’ — A UI that will look as similar as possible (proportionally to screen size) across as many Android devices as possible. B) On Android, the screen dimensions (aspect ratio
How to implement a circular color picker in Android? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question How can I build a color picker as given in the image using android? when an indicator is placed on
IntentService is freezing my application UI
In my application, I am using Intentservice to fetch the data from server and store fetched data in to local sqlite db. I am using 5 IntentService to fetch and fill five tables. Data may up to 300 rows for each Intent Service. What should I do? IntentService Code: Code to call intentservice: and intent send me the code when
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
Java and GUI – Where do ActionListeners belong according to MVC pattern?
I’m currently writing a template Java application and somehow, I’m not sure about where the ActionListeners belong if I wanted to cleanly follow the MVC pattern. The example is Swing based, but it’s not about the framework but rather the basic concept of MVC in Java, using any framework to create GUI. I started with an absolutely simple application containing
Android RecyclerView addition & removal of items
I have a RecyclerView with an TextView text box and a cross button ImageView. I have a button outside of the recyclerview that makes the cross button ImageView visible / gone. I’m looking to remove an item from the recylerview, when that items cross button ImageView is pressed. My adapter: My layout is: How can I get something like an
Alternating between even and odd elements in Array with GUI
I’m trying to work with more GUI stuff but I’m having problem with something. I have an array of JLabels. Each of them contain 1 number from 0 to 7. I’m making the numbers “light up” by changing …
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