Top "Jframe" questions

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

JFrame whose content changes as we click on the different buttons

I am using Java's Swing here to make a UI application. I have a created a JFrame, with some buttons. …

java swing jframe cardlayout
Where do I put this statement 'setJMenuBar(menuBar);'?

Main Class: import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; import javax.swing.JOptionPane; …

java swing jframe jpanel jmenu
How to close specific JFrame based on events on JPanel without exiting application?

How do I exit a particular frame based on a simulation on a JPanel within that particular frame without exiting …

java swing jframe jpanel multiple-instances
Stop Eclipse/Java running multiple instances

I'm not a java expert or a eclipse expert. Currently I'm working on a project and i need to debug/…

java eclipse swing jframe
How to add jlabel image hovering?

How would I go upon adding JLabel hovering? Like when you move your mouse over top a JLabel a and …

java swing jframe jlabel imageicon
paintComponent is not working (Java)

I have been trying to override and use the paint component method instead of the paint method because I've seen …

java swing jframe repaint paintcomponent
Switching between JPanels

I'm trying to make a game. There's several different screens in the game such as a main menu, and the …

java arraylist jframe jpanel visible
How to make Jpanel expand to the size of the JFrame?

The below code is from the book objects First With Java By Michale Kolling and David J Barnes and the …

java jframe jpanel paint preferredsize
Java setBounds() method (JFrame)

Hi Im using the setBounds method to open a window whith a certain size. But the size that I pass …

java swing jframe dimension setbounds
Adding JApplet into JFrame

I am trying to view a JApplet within a JFrame. Class: Paint public void paint(Graphics g) { g.drawString("hi", 50, 50); } …

java swing jframe japplet