Top "Jframe" questions

A JFrame is a component and top-level container of the JFC/Swing framework.

JFrame On Close Operation

I was wondering if there is a way, by clicking on the "X", to let the program perform some code …

java swing user-interface jframe windowlistener
How to disable main JFrame when open new JFrame

Example now I have a main frame contains jtable display all the customer information, and there was a create button …

java swing jframe
Get a Swing component by name

I have in a JFrame some components that I want to refer into another JFrame and I want to get …

java swing jframe
Setting minimum size limit for a window in java swing

I have a JFrame which has 3 JPanels in GridBagLayout.. Now, when I minimize a windows, after a certain limit, the …

java user-interface swing jframe
Set location of JDialog relative to JFrame

Is there a way to set a dialog location relative to a JFrame? I would like to center the dialog …

java swing jframe jdialog
How to clear/ reset a JFrame

Me and my friend have decided to work on a card game which cycles between 3 screens (Player1HandScreen, Player2HandScreen …

java jframe validation repaint removeall
How to focus a JFrame?

I am writing a small game, with one JFrame that holds the main game, and another JFrame that displays the …

java user-interface swing jframe
Draw text with graphics object on JFrame

I am an avid programmer but today is my first Java lesson. public void Paint (Graphics g) { if(g instanceof …

java swing text jframe draw
How to use KeyListener with JFrame?

So, I was trying to make a rectangle move with a KeyEvent (KeyListener) and whenever I try to hit the …

java swing animation jframe