jinternalframe

JInternalFrame Does Not Fully Maximize Under Mac OS X

I'm working with JInternalFrame's under Mac OS X Java 5 and when maximizing a JInternalFrame within a JDesktopPane the window doesn't fully maximize, but the property to allow maximizing is definitely set to true. This is the result I'm getting when maximized: Seeing as though the image previews didn't work. I've got no idea why it's ...

How to get the z order of JInternalFrames in a JDesktopPane

How would one go about getting the z order (layer depth of ) all the JInternalFrames inside a JDesktopPane. There does not seem to be a straight forward way for this. Any ideas? ...

Trouble Updating Title in JInternalFrame GUI component.

Hello, i am trying to update the title of a JInternalFrame component in my Java Project. The component is an instance of my ImageFrame class which extends JInternalFrame, and in my code I call a setter method in my ImageFrame class which updates the title attribute. I ran a Unit test and know that the attribute is updating properly, bu...

Swing: How could I get JInternalFrame treated equally to other components inside a container?

Hello! Background information: I am implementing a visual diagram editor, which consists of different complex elements (re-sizable, with title bar, sub-elements) and different simple elements (not re-sizable, no title bar, no sub-elements). All elements are draggable. I am using JInternalFrame (for complex elements) along with JPa...

Listening to all JInternalFrame events - Java

Hi, I'm trying to internationalise a Java applet and with that, support scripts which are written from right to left. I want to set up component orientations for all java components added to the view automatically. My solution so far has to listen to all AWTEvent's using the windows mask: c.getToolkit().addAWTEventListener(listener, A...

Java Swing: JInternalFrame: need a dialog popup

I have a JInternalFrame window that needs to popup a modal dialog box when a JButton is pressed. At first, I tried using JDialog, but I found that JDialog constructor needs: JFrame boolean modal I tried passing JInternalFrame to it, but the type didn't match. Should I use JDialog with JInternalFrame? What if I dont specify the owner...

JInternalFrame and Keybinding

How do I bind a function key say(F11 etc) to a JInternalFrame, so it can activate a particular action. I tried with the following this.getInputMap().put(KeyStroke.getKeyStroke("F11"), new AbstractAction() { public void actionPerformed(ActionEvent e) { System.out.println("Called"); } }); but it never gets calle...

How do I find the current focussed InternalFrame?

I am having multiple InternalFrames (JIF) added to a desktop manager. How do I know which one has the focus at the moment? ...

Maintaining a single instance of JInternalFrame?

Hi Everyone, I have an application which opens multiple JIFs, But I only want to create a single instance of the JIF, so I use these function to check that, and I use dispose to close the JIF after a key is pressed(JDesktopPane.getSelectedFrame().dispose()). However after 2-3 successive disposes, it doesn't create a new JIF? Am I doing ...

MDI : How to create snappable internal jframes

I am interested in creating a work place consisting of multiple jframes. I would like to implement the functionality that google dashboard uses to dock their frames into a position. I would also like to be able to snap two frames together. Does anyone have any idea how google does this, how it might be done or perhaps code of an open sou...

JScrollPanes in JInternalFrames for right to left component orientations - Java bug?

So I have created some demo code, see below. What I am seeing is that if a JScrollPane is within a JInternalFrame and component orientation is set to right-to-left, when minmising the frame, the scroll bar stays to the left of the content. I would expect, seeing as RtL, that it would stay to the right of the content, which is true if th...

How do I Hook a JPanel into parent/ancestor Container's windowClosing/Closed listener?

I want to create a 'generic' JPanel which can be rendered in any of the higher level Window classes (JFrame, JDialog, or JInternalFrame to be somewhat precise.) I want to be able to 'clean up' some static values when that window is no longer being rendered on screen. Normally, I would do this with a Window class (like JFrame) and simply...

setting Swing JInternalFrame lnf manually.

UIManager.put("InternalFrame.activeTitleBackground", new ColorUIResource(new Color(207,255,247))); UIManager.put("InternalFrame.inactiveTitleBackground", new ColorUIResource(new Color(207,255,247))); JDesktopPane baTabbedPane = new JDesktopPane(); JInternalFrame iframe = new JInternalFrame("Cheapest To Deliver",true,true,true,true); ifra...

How to set JInternalFrame minimised title background?

I can set the title bar background when maximised using InternalFrame.activeTitleBackground and InternalFrame.inactiveTitleBackground but how do I set it when the internal frame is minimised? ...

Shared object between multiple JInternalFrames

What's the most efficient method of implementing a shared data object between multiple JInternalFrames on a single JDesktopPane? Not sure whether to go with singleton or can I put a data object in the JDesktopPane and access from a component? I don't want to keep separate instances of this data for each frame (lots of frames) ...

JCombobox's popup list is not painted completely

I have a JInternalFrame in a JDesktop, and I also have a JComboBox in the internal frame. The problem is shown below. How can I make JComboBox paint outside JInternalFrame, so that the popup list can be shown completely? Is using glass pane an optimal solution, or would it be bad practice? SOLUTION: I have found the solution; just...

Java Swing arranging JInternalFrames

Is there any default functionality for arranging JInternalFrames in Java Swing? I would like to have the Cascade, Tile, etc... functionality within my Java Swing application like this: http://www.codeproject.com/KB/cs/mdiformstutorial.aspx I could only find code where they did the arranging manually. Is there no support for this in Jav...

Java - How to make a set of JInternalFrame independant of each other?

Hello, I'm programming a short Paint program like and I'm trying to make an MDI architecture for it. To make that happen, I used JInternalFrame inside a JDesktopPane. Although I kind of obtain multiple frames, there are not really working properly. Basically, if I have 2 JInternalFrame I can draw only on the last one. The other one seem...

Java - Problem when Resizing a JInternalFrame

Hi, In a previous SO question, I was talking about somes issues dealing with my MDI architecture. I have now another problem when resizing my JInternalFrame. Here is a short video that illustrates it. I have a class: Cadre which is basically my JInternalFrame. public class Cadre extends JInternalFrame { /** Largeur par d'une fenĂȘtre ...

Using AWT components inside a JInnerFrame (for JDesktopPane)

Hello, is there a way to hack bugs related to adding an AWT component (in my case a PApplet, so a processing language sketch) inside a JInternalFrame? It works but not as intended, since it flickers and dragging the frame causes repaint issues.. reading around it seems that, althrough it's possible to mix heavyweight (AWT) and lightweig...