jframe

How to minimize a JFrame window from Java ?

In my Java app, I have a JFrame window, how can I minimize it from my Java program ? ...

Disable Background drawing in JFrame in order to properly display Aero (DWM) effects.

I'm having problems using the DWM functionality of Windows Vista/7 on Java windows. I want to make the background of my frame use the Aero style. The Windows API to do so is provide by the function DwmExtendFrameIntoClientArea in the dwmapi library. I've managed to call the procedure properly via JNA, and it does what it is supposed to d...

Java 6, JFrame stuck alwaysontop

This issue only seems to occur since I upgraded from 1.5 to 1.6 The main JFrame, randomly seems to get stuck infront of every other application in windows. Even another JDialog popping up set to alwaysontop(true) will be behind this main JFrame. Any ideas on what could be causing this issue? / Any ideas for solutions? Never had this i...

How do I save preference user settings in Java?

For example, I have a window with a preference button. I want to make it so that when user press the preference button and checks his/her appropriate options and press ok, it saves the preference, then when user presses run on the main window, it runs accordingly to preference the user changed on the preference window. Thank you in adva...

JFrame to be displayed when the event occurs???

Hi, I have a JFrame which pops up when the event occurs. I am having a functionality which when the event occurs the JFrame pops up and if we click on that Frame it will open the corresponding frame, but the issue is when I am not clicking the popped up frame when the event occurs, if another event comes its displays the frame in the tas...

Java Swing. Windows in front launched from JDialog

Hi! The thing I want to implement is the next UI hierarchy in my Swing application. Main Window (JFrame) Modal dialog (JDialog) in front of this window. It's opened by clicking on the button in main window. The set of windows in front of modal dialog (2). They should be independent from each other and non-blocking for modal jdialog (2)...

Getting my Java program to display images through drag and drop

I am trying to get my program to display an image after it is dragged over, but I dont really have a good idea of how to do this. Example: There is an image on your desktop, photo.jpg . You would take that, drag it over into a java JFrame, and the contents of that image (the photo iteself) would display. From there I would like to be...

Is it possible make all JFrames the internal program uses into JInternalFrames and place them in a JDesktopPane?

The goal is to have the user select a java program, then my program opens up a JInternalFrame with a JEditorPane inside it as the console and places said JInternalFrame in a JDeskopPane. Is it possible to change all the Windows the user's program may open into JInternalFrames and place them in said JDesktopPane, as well? (individual qu...

setMaximumSize not working in java

I hava a java program with a JFrame I am using absolute positioning here is my main function public static void main(String[] args) { ape Ape = new ape(); Ape.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Ape.setSize(1000,1000); Ape.setMinimumSize(new Dimension(1000,1000)); Ape.setMaximumSize(new Dimension(1000,1...