Top "Jframe" questions

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

How do I draw an image to a JPanel or JFrame?

How do I draw an Image to a JPanel or JFrame, I have already read oracle's tutorial on this but …

java swing jframe jpanel bufferedimage
refresh JFrame after adding new Components

I want to add some new Components to my JFrame during runtime when a button is pressed. This works so …

java user-interface jframe
How to open a new window by clicking a button

As a part of my program, I need to have a button that when the user click on it, it …

java swing jframe jbutton actionlistener
Close one JFrame without closing another?

I want to display two (or more) JFrames at the same time. When I close one of them (use the …

java swing jframe
Button ActionListener

Ok, so I made a simple program that adds the value to counter each time a button is clicked. Now, …

java swing jframe jbutton actionlistener
Java GUI: about getContentPane( ) method and content

In this piece of code: JLabel emptyLabel = new JLabel(""); emptyLabel.setPreferredSize(new Dimension(175, 100)); frame.getContentPane().add(emptyLabel, BorderLayout.CENTER); I …

java swing jframe
How to set Icon to JFrame

I tried this way, but it didnt changed? ImageIcon icon = new ImageIcon("C:\\Documents and Settings\\Desktop\\favicon(1).ico"); frame.…

java swing icons jframe
Java/Swing: Obtain Window/JFrame from inside a JPanel

How can I get the JFrame in which a JPanel is living? My current solution is to ask the panel …

java swing jframe swingutilities
Set JFrame to center of Screen in NetBeans

I am developing a java swing desktop application with NetBeans and I want to set the JFrame to the centre …

java swing jframe netbeans-7
Adding JPanel from another class to JPanel in JFrame

I can't get my JFrame from main class to display JPanel from another class. Everything compiles without errors. JFrameTest.java: …

java swing user-interface jframe jpanel