Top "Jframe" questions

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

how to set JFrame background transparent but JPanel or JLabel Background opaque?

As per assignment, we have to create a image viewer just like Picasas one. picture in the middle, translucent black …

java image swing jframe image-viewer
setDefaultCloseOperation to show a JFrame instead

I am making a word processor application in order to practise Java and I would like it so that when …

java swing jframe windowlistener
Java Bouncing Ball

I am trying to write a Java application which draws multiple balls on screen which bounce off of the edges …

java swing jframe
What is the difference between a JFrame and a JDialog?

What is the difference between a JFrame and a JDialog? Why can't we use setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); for …

java swing jframe jdialog
Swing: Obtain Image of JFrame

How do I obtain a java.awt.Image of a JFrame? I want to obtain a screen shot of a …

java image swing screenshot jframe
How to add scrollbar in JFrame with null layout?

I want to add a vertical scroll-bar on my JFrame with null layout. Is it possible or not? please help!

java swing jframe jscrollbar null-layout-manager
How to set the JFrame as a parent to the JDialog

I am having trouble to set the frame as a owner to the dialog. Normally when I extend JDialog class …

java swing jframe modal-dialog jdialog
Swing: Change cursor to wait cursor

See also Java Swing GUI hour glass. However the provided answer does not seem to work. I have following code: …

java swing jframe event-dispatch-thread mouse-cursor
How to set output stream to TextArea

I'm trying to create a GUI Panel for a program and I'd like everything, that would normally print to my …

java swing user-interface jframe jtextarea
Run function on JFrame close

void terminate() {} protected JFrame frame = new JFrame(); How can I get frame to run the terminate function when I press …

java swing jframe windowlistener