Top "Jcomponent" questions

JComponent is the base class for all Java Swing components except top-level containers.

Difference between JPanel, JFrame, JComponent, and JApplet

I'm making a physics simulator for fun and I was looking up graphics tutorials when I tried to figure out …

java jframe jpanel japplet jcomponent
Placing a JLabel at a specific x,y coordinate on a JPanel

I'm trying to place a series of JLabels at specific X and Y coordinates on a JPanel (and set its …

java swing layout jcomponent null-layout-manager
Java get JPanel Components

I have a JPanel full of JTextFields... for (int i=0; i<maxPoints; i++) { JTextField textField = new JTextField(); points.add(…

java swing jframe jpanel jcomponent
How to create a custom Swing Component

I've always wanted to create custom components in Java, or customize existing ones, but my searches never resulted in anything …

java swing jcomponent
How to get all elements inside a JFrame?

I have this code to get all the elements I need and do some processing. The problem is I need …

java swing jcomponent
Size of Text Area in java

I am writing a code for basic GUI. There i need a Text Area. But i can not make the …

java swing jtextarea jcomponent preferredsize
JPanel which one of Listeners is proper for visibility is changed

Are there some rules, or good/bad experiences with AncestorListener, ComponentListener or HierarchyListener listening for visibility of changes with JPanel …

java swing listener jpanel jcomponent
JSplitPane splitting 50% precisely

In Swing, what's the best way to make the JSplitPane to split two jpanels with 50% size each. It looks like …

java swing jcomponent
How can I get all the components of a panel in Java Swing?

How can I get all the components of a panel in Java Swing? Is there any method like foreach in …

java arrays swing jpanel jcomponent
Creating a simple custom JComponent in Java?

I want to start building my own customized JComponent's for a project at work. I have a simple example below …

java swing paintcomponent jcomponent preferredsize