Top "Jframe" questions

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

set JFrame Orientation from right to left!

To align my JFrame from righ-to-left, I use: setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); but this works only if I use …

java swing orientation jframe arabic
Popup for JFrame close button

i am doing some basic Java Swing application (beginner level) . what i have to do is when i press close …

java swing jframe windowlistener jpopup
why doesn't the frame close when i press the escape key?

import java.awt.*; import javax.swing.*; import java.awt.event.*; public class displayFullScreen extends JFrame { private JLabel alarmMessage = new JLabel("…

java swing events jframe actionlistener
Renaming a button after clicking - Java JButton

I'm trying to change my button from saying "Start" to "Stop" when I click on it. My attempt at doing …

java swing jframe jbutton actionlistener
Exiting an application gracefully?

I have an application with a well defined Try/Catch/Finally chain that exits and executes the finally block just …

java user-interface jframe exit try-catch-finally
Implementing ItemListener

i've been having problem in the itemStateChanged section. when I compiled the program i get the "cannot find variable" error …

java swing jframe jpanel itemlistener
Building a GUI for a Sudoku Solver (Complete with ASCII Example)

. OVERVIEW, SAMPLE Hello everyone, I have created a basic Sudoku solver that can solve most problems fairly quickly. I still …

java user-interface components jframe sudoku
How to setVisible a JinternalFrame in the center of the JdesktopPane?

Actually i wanna show the JinternalFrame in the center of the JDesktopPane and i used this methode as i use …

java swing jframe jinternalframe
Unable to make JDialog modal

I am trying to open a new JDialog when the "Register" Button is clicked.. But I am unable to make …

java swing jframe jdialog modality
Displaying a JComponent inside a JPanel on a JFrame

I am failing to display a JComponent inside a JPanel on a JFrame. The following does not work. JComponent component = ... …

java swing jframe jpanel jcomponent