Top "Jframe" questions

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

Adding a button anywhere in a JPanel

Without using the Swing GUI on Eclipse, I've been struggling with adding a button to a JFrame anywhere in the …

java swing jframe jpanel layout-manager
Disable JFrame minimize button

I am developing a tool for my laptop. I want to disable minimize button in the JFrame. I have already …

java swing jframe jdialog jwindow
How to show different cards in a CardLayout?

I looked at a code example that used this code: cl.show(cardPanel, "" + (currentCard)); But when I use show I …

java swing jframe cardlayout
JAVA: Ways to fill a Frame. add(), setContentPane(), getContentPane()

I found three ways to fill my JFrame frame = new JFrame("...") createContentPanel returns a JPanel and createToolBar returns a ToolBar. …

java jframe jtoolbar
Best practice for setting JFrame locations

I have a (somewhat philosophical) question relatively to Swing, or to GUI programming in general. Are there recognized best practices …

java swing user-interface jframe
Making multiple frames in a single program

I always wondered on how can I make a program with multiple JFrames. I mean I just want one class …

java swing jframe multiple-instances
How to run JFrame maximized in JAVA?

I'm new to JAVA. I need to run a JFrame named MainFrame in maximized mode. How can I do it? …

java swing jframe
How to detect JFrame window minimize and maximize events?

Is there a way to an event listener to a JFrame object to detect when the user clicks the window …

java swing jframe awt windowlistener
JFrame removing JPanels and adding a new JPanel

I currrently have a SwingWorker that sends a HTTP Request and I override the SwingWorker's done() method to change contents …

java swing jframe repaint
How can I customize the title bar on JFrame?

I would like to have a customized title bar in my Java Swing desktop application. What is the best way …

java swing customization jframe titlebar