jpanel Questions
2
I'm a java newbie... I need to know how to reload a JPanel? I extended the JPanel class and created a panel that will run in a cardlayout in an Applet. I want this panel to reload/refresh after the...
Yogh asked 12/7, 2013 at 6:6
2
Edit: some sort of refresh is being sent when I drag the borders, I need to figure that out and manually send that same refresh.
Please note I have tried using revalidate() and repaint().
When ...
4
I'm trying out Intellij Idea, and am trying to do some Swing development. I am running into an issue I have never experienced on Eclipse, and I am wondering if I have something set up wrong.
Here i...
Engadine asked 11/2, 2018 at 21:0
5
Solved
What is the main difference between setSize() and setPreferredSize(). Sometimes I used setSize(), sometimes setPreferredSize(), sometimes one does what I want, sometimes the other.
What call should...
3
Solved
How can I get all the components of a panel in Java Swing?
Is there any method like foreach in C# to deal all the child components of a JPanel?
Tobietobin asked 31/3, 2013 at 8:15
3
Is there any thing I can do to make my JPanel pack like a JFrame, or do something like that. I want to do this instead of giving it dimensions. Please comment if any addition info is needed. Thanks...
Ashburn asked 6/10, 2014 at 0:43
8
Solved
I have a JPanel full of JTextFields...
for (int i=0; i<maxPoints; i++) {
JTextField textField = new JTextField();
points.add(textField);
}
How do I later get the JTextFields in that JPanel?...
Haemachrome asked 16/12, 2008 at 2:21
3
Solved
I am having problems with this thing: can I, in some way, add a dashed (or dotted, no matter) border to a JPanel?
I searched SO questions but seems that no one asked this before.
I'm wondering if...
Soekarno asked 5/10, 2012 at 0:46
2
I want to know how to make background gradient which is in another JPanel. Many articles found in internet,but all of them had demostrated how to overide the paintComponent() of the JPanel not how ...
Hylan asked 31/8, 2012 at 18:35
5
Solved
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 b...
Vertumnus asked 13/7, 2009 at 15:4
14
Solved
To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action...
Manumit asked 20/10, 2008 at 11:53
3
Solved
I have a JTabbedPane with 2 JPanels set to GridLayout(13, 11). The first JPanel has enough of the cells filled out that it leaves the empty cells.
The second JPanel has significantly fewer cells...
Orange asked 2/2, 2014 at 20:50
2
Solved
JPanel.add(ButtonGroup);
Is not working. I MUST add it to a JPanel because I am using tabs.
This is getting really frustrating.I hace not found a way yet
Citation asked 22/9, 2013 at 8:28
2
Solved
I am adding a JPanel in a JScrollPane in my project.
All is working fine, but there is one problem about mouse scroll using the mouse-Wheel in JPanel. It's speed is very slow on scrolling. How to...
Humanity asked 12/4, 2012 at 7:53
5
Solved
I'm creating a simple program where I draw a black oval where I click with my mouse. However I want a new oval to appear and the old one to disappear. How would I go about doing this? I've messed a...
4
Solved
I have an existing interface that has a JPanel for displaying pdf files.
It is important to display the pdf inside this inteface and not open a new window.
How can I display a pdf on the JPanel wi...
2
Solved
i'm new here. Hope you will be able to help.
Problem:
Problem with displaying Animation on JFrame. Seems I miss/don't understand enough how Java's graphics works.
Global idea:
Lets say I want mak...
Mongolism asked 28/6, 2013 at 21:29
3
Solved
I have a JPanel with some JLabel added with the add() method of JPanel. I want to align the JLabel to the right like the image below but I don't know how to do that. Any Idea? Thanks!
Bimanous asked 25/9, 2012 at 19:6
7
Solved
In my JPanel I have many components, including other JPanels, JLabels, JTextAreas, and JButtons. Becuase I want to implement a tutorial mode where another window appears and everything in my main J...
Shenashenan asked 11/10, 2013 at 18:28
2
Solved
Does anyone know any way I can play an .mp4 video file in a JPanel?
I have tried JMF with .avi file but found no success and now I'm baffled and frustrated at how such a simple task of playing a vi...
4
How can I add the scroll bar to my text area. I have tried with this code but it's not working.
middlePanel=new JPanel();
middlePanel.setBorder(new TitledBorder(new EtchedBorder(), "Display Ar...
Avertin asked 16/4, 2012 at 15:35
5
Solved
I have a JPanel that I have created a MouseListener for and I am seeing some behavior that I can't explain.
Usually when I click the mouse within the JPanel, I see the following events fire:
mou...
Enthuse asked 1/8, 2010 at 14:18
2
I am learning about JPanel and GridLayout , this snippet of code will produce a simple JPanel with 6 buttons
package testing;
import java.io.*;
import java.util.*;
import java.security.*;
import...
6
Solved
I have a series of components underneath each other in a JPanel set as a GridLayout.
I need to temporarily hide the components but setVisible(false) doesn't cut it, because there is still an empty ...
Oared asked 11/10, 2011 at 14:33
5
Solved
I am having a problem with IntelliJ's java gui creation. Most of the code behind the panel is unfortunately hidden within the gui creator and not editable by me.
I created a blank JPanel "question...
Biggin asked 9/3, 2012 at 18:20
1 Next >
© 2022 - 2025 — McMap. All rights reserved.