I'm having some problems with loading an image in a JEditorPane by using the tag. I get the body of the mail from Gmail, which looks like this: I e ...
I'm having some problems with loading an image in a JEditorPane by using the tag. I get the body of the mail from Gmail, which looks like this: I e ...
So I have a main JPanel that I would want to use as a container for more panels. I would like the child panels to have the same width as its parent an ...
my jbuttons are in an asymmetrical row. i want them to be in 2 symmetrical rows at the top because i think that would look better. how would i do this ...
I'm trying to create a chess game with java jframe and jpanel. I have done a method which allows you to move the pieces everywhere, but I don't know ...
Full image of my window The grey border of JFrame visible Problem: I want my application to run on full screen (maximized) by default (but the maxi ...
i tried that to modify my button jb[10][10] but when i run all button have the same icon, i want that the button share all values of b the icon too ...
I have the following code: public class PnlMenuRadioButtons extends JPanel { public PnlMenuRadioButtons(String menuName) { super(); ...
I'm writing a custom HTML renderer from scratch. It renders block, inline-block, inline elements, floats etc. I made a Drawable interface that extend ...
First I put them in context, I'm working on a small project with Java Swing. Before the project was made with Java 8 and Ant and it worked fine. I dec ...
I'm doing this as a challenge for myself. My problem is that when I click on the button, the content pane appears plain even if the JPanel has compone ...
Basically my GUI is like this: A frame that contains a free designed layout JPanel called mainPanel Inside mainPanel are two other panels: A) toolP ...
I have problem with showing JPanel (Page) element that located in another JPanel element in JFrame. Abstract Class Page is extending JPanel and giv ...
I am trying to create a JPanel to draw on where the drawing area is larger than the display size. I was expecting a JPanel with a scrollpane to appear ...
So, I have seen many similar questions but they are all a bit different and don't seem to fit my problem. So, I have a "Main" class, a "Panel" class ...
I made a simple project in java where the ball bounces off the edges of the screen. When I changed the speed of the ball, it went through the edge of ...
I have a JPanel and I want it to update after a specified time interval. I tried using Thread.sleep but it doesn't work. Let's say I want it to be up ...
I wanted to create a GUI with swing for a program I wrote. I use eclipse and WindowBuilder. My goal is to create a JScrollPane with Panels inside. Thi ...
I'm making a little game in java swing, it's a game where the enemy follows the cursor. But if the cursor exists the frame the application returns an ...
When I add the scrollbar, I can't see the chat output and inputbar. If I delete the scrollbar, everything is ok. I don't know why... Scroll must be ve ...
I'm using Java Swing for a Connection GUI. I need to prevent entering whitespaces to the JTextField elements, especially to password field. I had used ...