The restrictionDropdown will not appear on the screen along with the other two components. The class I am working out of extends JComponent. Additio ...
The restrictionDropdown will not appear on the screen along with the other two components. The class I am working out of extends JComponent. Additio ...
)) I'm new to Java, And I have such task: Create a text field component class. In the constructor, the default string must be set in the text fiel ...
I need help implementing my own traversal policy. My goal was to be able to traverse with tab some of the components in a panel, not all of them. I wa ...
I have this class, Carta, that I use to draw a card. The paint method works well on itself: @Override public void paintComponent(Graphics g) { Gr ...
I want to have a text field to input an integer, then select 1) Grow or 2) Shrink, and then click the button so that the circle gets redrawn on the sc ...
I'm trying to add a JComponent onto a Jpanel whenever I switch my selection for daysOfTheWeek comboBox. However, it doesn't seem to work, but only wor ...
So I want to change the position of an image which I implemented as a JComponent after I click the corresponding button, however, it does not do anyth ...
I'm making a program in Java Swing and so far I only have the GUI done but that's what's giving me the problem. I have no idea why, but when my "tasks ...
I've been working at the following bit of code for quite some time now, and I just can't seem to get the keyListeners to work. I've tried moving the s ...
I started a Chess Project reusing some older code to paint a map everything basically has been copy pasted. The problem is the squares dont show up? I ...
Here is my probleme. I have a JComponent in the middle of a slider, itself in the middle of the BorderLayout in a frame. I use my JComponent to draw/w ...
I'm having a problem with JButton. I need to change the text on the goPauseButton when it has been clicked, but I get this error: goPauseButton cannot ...
I'm using the Flatlaf Look and Feel for my GUI in Java swing. There's a pre-made theme in Flatlaf which I imported, but I'd like to change one of the ...
Once I hover over any of the round buttons a square background appears behind it and never disappears again. The button is still clickable while the s ...
I am working on a project that involves the need for a custom Line component (so that additional functionality can be included later - i.e., Lines can ...
I'm beginner in Java and I'm trying to make a simple text editor where the font and text size can be changed. It works although it has an issue that i ...
I have an app where a user can dynamically add shapes, let's say a Circle (for simplicity), by clicking on a location (x,y). I have been keeping an Ar ...
I'm developing an educational app for Mac and Win10. My canvas window inherits from JFrame, and is declared to be a fixed size: The interactive co ...
As you can see from the image I have my jtable in the frame with two column name and icon. The icon column doesn't highlight. Why? This is my render ...
I have made this Solar System and so far I have achieved to make this code. As depicted in figure, instead of using public static class SolarCv extend ...