Skip to content
Advertisement

Tag: jpanel

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

How to add multiple JComponents to a JPanel?

I’m trying to add multiple components to a JPanel, but only the most recently added component is displaying. It seems like the problem is that the layout can only handle 1 component at a time, but I’m at a loss as to how to actually fix it. I’ve tried adding the components to a separate panel and then adding that

Making a JPanel manually resizable

I have a JFrame with BorderLayout as the layout manager. In the south border, I have a JPanel, I want this JPanel’s size to be adjustable by the user, i.e. the user can click on the edge of the border and drag it up to make it larger. Is there any way you know that I can do this? Answer

Java get JPanel Components

I have a JPanel full of JTextFields… How do I later get the JTextFields in that JPanel? Like if I want their values with Thanks Answer Well bear in mind they didn’t get there by them selves ( I think a read some questions about dynamically creating these panels at runtime ) In the answers posted there, someone said you

Advertisement