Questions tagged [jinternalframe]

JInternalFrame is a lightweight Java Swing component that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.

JInternalFrame is a lightweight Java Swing component that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.
For task-oriented documentation and examples of using internal frames, see How to Use Internal Frames, a section in The Java Tutorial.

420 questions
3
votes
1 answer

How to manage a JInternalFrame calling another JInternalFrame?

I have a JDesktopPane with this code. public class Menu extends JFrame implements ActionListener{ /** * Creates new form Portada */ public static JDesktopPane desktop; public JDesktopPane getDesktop() { return desktop; } public Menu() { …
Washu
  • 835
  • 1
  • 9
  • 20
3
votes
2 answers

how to make JInternalFrame fill the Container and disable the dragging feature?

I'm working on a project, there are JInternalFrames in the mainframe. Now, we need to let them to be JFrame. I'm considering using a JFrame to hold on JInternalFrame. The problem is that the titlebar of Internalframe is there, and user can drag it…
xiaohei
  • 97
  • 1
  • 9
3
votes
1 answer

How can I change the "minimize, maximize and close" icons of a internal frame with Nimbus Laf?

I'm using Nimbus Look and Feel, I know how to change for example, the tooltip color, by using this code: UIManager.put("info", Color.white); But how can I change the icons (minimize, maximize and close) to another icon/png file? Here is the the…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
3
votes
1 answer

How to get a JInternalFrame in the order i add it

I tried to access a JInternalFrame in my JDesktopPane and use getAllFrames method. I just want to access the JInternalFrame in the order that i added into the JDesktopPane. for example, i add a,b,c frames[0] contain a frames[1] contain b frames[2]…
code4j
  • 4,208
  • 5
  • 34
  • 51
3
votes
1 answer

Nested JSplitPane on JInternal Frame

By clicking the "Add Int Frame" button I plot JInternalFrame on a tabbedPane, in the right part of this HORIZONTAL divided JSplitPane. On this InternalFrame I can add nested JSplitPane by clicking the "Add Split Pane" button. Nested JSplitPanes…
Alberto acepsut
  • 1,972
  • 10
  • 41
  • 87
2
votes
3 answers

Allow only one instance of JInternalFrame

I've created a Swing application with several JInternalFrames which gets added to a JDesktopPane on the event of a mouse click. I want only one instance of the same Internal frame to be present on the DesktopPane. I dont want the same frame to…
wishman
  • 774
  • 4
  • 14
  • 31
2
votes
4 answers

Hide buttons on title bar in Java

In Jinternal Frame(java), i want to hide max, min, close button (not disable max, min, close properties), but when I used this code : javax.swing.plaf.InternalFrameUI ifu= jif.getUI(); //jif :…
Thanh Nguyen
  • 81
  • 2
  • 5
2
votes
3 answers

why does JInternalFrame's setSize not work

I make a JFrame, and add a JDesktopPane into the JFrame, and then add a JInternalFrame into the JDesktopPane, the JInternalFrame' initial size is the same as JDesktopPane. When the JFrame is maxmized, the JDesktopPane will also be maximized, but the…
Andy Jiang
  • 23
  • 4
2
votes
2 answers

Java MVC & Composite Design Pattern With Internal Frames

Still wondering the best way to do Model-View-Controller Software Architecture, Do I pass the Controller into the View, or do I use the Observer Design Pattern and let the Controller Observe any changes/requests made by the view so we can update the…
Shane van Wyk
  • 1,870
  • 1
  • 26
  • 62
2
votes
1 answer

JInternalFrame snaps back to original position when cursor leaves container

I have a JInternalFrame inside a JPanel, all is working great, but when I reposition the internal frame and then move the cursor outside the JPanel, it resets its position. I couldn't see anything in the API related to this.
Sam
  • 3,659
  • 3
  • 36
  • 49
2
votes
2 answers

JInternalFrame minimize while maintaining current location

I need the iconable/minimize feature of JInternalFrame to collapse the frame (which it does), but also maintain the JInternalFrame's position within its parent component. Currently, when I press the minimize button of a JInternalFrame, java places…
farm ostrich
  • 5,881
  • 14
  • 55
  • 81
2
votes
2 answers

Adding jinternalframe class to jdesktoppane using other jinternalframe class

I'm creating a very simple program. I have created this classes : MainJframeClass, JDesktopPaneClass, JinternalFrameClass1 and JinternalFrameClass2. what ive done is that i instantiated my jdesktoppaneclass and named it desktoppane1 and i added it…
javaBiggener
  • 21
  • 1
  • 2
2
votes
1 answer

JInternalFrame KeyListener focus

Good day, I have this view [extends JInternalFrame that has a controller [implements KeyListener]. On a method of mine, void loadListener() is where I added the KeyListener to the view. At first focus of the frame, the KeyListener triggers its three…
Cyril Horad
  • 1,555
  • 3
  • 23
  • 35
2
votes
1 answer

JInternalFrame in full-screen mode

I intend to use a JInternalFrame as a modal JDialog in full-screen mode, however, it is not currently being shown when it gets called. Do I need to add it to some container? I tried adding it to a JOptionPane.showInternalMessage(...), but since I…
skyork
  • 7,113
  • 18
  • 63
  • 103
2
votes
1 answer

Windows 10 Style for JInternalFrame

I'm working on an application that makes use of Swing's JInternalFrame. I'm using the native look and feel with UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());. However, the native look and feel for the internal frame remains in…
Appleshell
  • 7,088
  • 6
  • 47
  • 96
1 2
3
27 28