Top "Jframe" questions

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

How to change java icon in a JFrame

Ok so I've been researching this one quiet a bit. I am fairly new to java but thought that this …

java swing icons jframe imageicon
Java JFrame background color not working

I tried using: frame1.getContentPane().setBackground(Color.yellow); But it is not working. Can anyone help me? import java.awt.*; …

java swing colors jframe setbackground
JFileChooser - regarding the "open" and "cancel" buttons. Java

I am having some trouble using the JFileChooser. Whenever I run the program if I click the "cancel" button right …

java swing jframe jfilechooser disambiguation
How can I set the insets of a JFrame?

Is there a way to set the insets of a JFrame? I tried frame.getContentPane().getInsets().set(10, 10, 10, 10); and frame.getInsets().…

java swing jframe insets
How to make JFrame transparent?

How to make JFrame transparent? I want to make my JFrame transparent. User should see the background when my JFrame …

java swing jframe transparent
How can I change the default look and feel of Jframe? (Not theme of Netbeans)

I want to change the default look and feel of all the jframe forms I'll create from here on out …

java swing netbeans jframe
How to auto resize JFrame according to content

I have created a custom JPanel that displays images (lets call it MyPanel), I have added this to JFrame's contentPane. …

swing jframe resize dynamic-resizing
Show JDialog ("Please Wait") on JFrame

I have a JFrame and this JFrame has a JButton. I want in JButton first show JDialog (display "Please wait") …

java swing jframe jdialog
Transparent JPanel

I want to create a semi-transparent JPanel. I've done it by simply using RGBA value of color constructor but problem …

java swing jframe
How can I align elements in JPanels / JFrames?

I'm completely new to using the GUI in java, so I'm having a bit of trouble figuring out how to …

java swing jframe jpanel layout-manager