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
10
votes
4 answers

hiding title bar of JInternalFrame? -java

I found some code online, I edited it a bit. I want to hide title bar of a JInternalFrame. JInternalFrame frame = new JInternalFrame(); // Get the title bar and set it to null setRootPaneCheckingEnabled(false); …
Tushar Chutani
  • 1,522
  • 5
  • 27
  • 57
10
votes
2 answers

JDesktopPane resize

We have a application with two JFrames with two JDesktopPanes. We need to move an internal frame from one frame to another. The problem we have is that after we move the internalframe from first window to the second window, when we resize the fist…
Nethru
  • 103
  • 7
10
votes
2 answers

How to change jdesktoppane default background image?

How to change jdesktoppane background image in MDI (Multiple Documents interface) using java netbeans? Means I added the jdesktoppane to java MDI so now I want to change default background image of that jdesktoppane which I'm using in java MDI. Any…
Ayaz Ali
  • 311
  • 2
  • 7
  • 16
9
votes
1 answer

Maximizing JInternalFrame in Java

I am trying to get a JInternalFrame to be maximized when it is launched. I have done web searches on this and have tried various code suggestions, but they do not seem to work properly on my machine, which is running Java 6 on Windows 7. I have…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
9
votes
3 answers

JDesktopPane - how to get active frame

How to get active (having focus) frame (JInternalFrame) that is inside JDesktopPane? I need it for my MDI notepad (not that anybody would use that, just a training project). Looking at api, I see only functions to get all JInternalFrames, not active…
Dariusz G. Jagielski
  • 655
  • 3
  • 11
  • 22
8
votes
4 answers

Preventing JInternalFrame from being moved out of a JDesktopPane

When I have a JInternalFrame in a JDesktopPane, the JInternalFrame is movable (which is good). However, it's possible to move it outside of the visible scope of the JDesktopPane (which I'm not so fond of) To see for yourself, here's some sample…
amaidment
  • 6,942
  • 5
  • 52
  • 88
8
votes
5 answers

How do I open a JInternalFrame centered in a JDesktopPane?

I am adding a bunch of JInternalFrames into a JDesktopPane, as the user selects to open various features through the menus. But I would like the internal frames to open centered in the desktop pane, as opposed to the upper left, where they seem to…
Steven
  • 920
  • 2
  • 9
  • 21
7
votes
2 answers

Java method works on windows but not Macintosh?

I had a real weird method which is used to hide JInternalFrame's title bar. Now the dilemma is below method works on windows platform, ((javax.swing.plaf.basic.BasicInternalFrameUI) aXInternalFrame.getUI()).setNorthPane(null); But not on Macintosh!…
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
7
votes
1 answer

Undecorated JInternalFrame becomes decorated when viewed through Remote Desktop Sharing

I’m facing a problem with JInternalFrame implementation. I have made the JInternalFrame undecorated, so that the title bar and border of the JInternalFrame gets removed. The problem occurs in the following scenario. Execute the program in a Windows…
Deepak M Nair
  • 71
  • 1
  • 2
6
votes
1 answer

programmatically minimize a JInternalFrame?

Is there any way to programmatically minimize a JInternalFrame?
javamonkey79
  • 17,443
  • 36
  • 114
  • 172
5
votes
3 answers

JInternalFrame adding an icon to the title bar

I'd like to add an ImageIcon or comparable to a JInternalFrame's titlebar such that the [x] icon is east-most, the iconable icon is second east-most, and a custom icon is third east-most. Is this doable?
farm ostrich
  • 5,881
  • 14
  • 55
  • 81
5
votes
2 answers

how to keep minimized jinternalframe on top

i have four internal frames and 3 buttons in it .When i hit the maximize button,maximizes but it overlaps all the frames.But my point is that it should show the minimized frames. please find the code below package Project; import…
user2045376
5
votes
1 answer

Use a JInternalFrame to create a chat window in a client/server app

How to use a JInternalFrame within a JFrame? I want to create a client/server app. I know that JInternalFrame should be used with JDeskTopPane but I want a chat window which can be moved within the app (just like chatting in Facebook). How to use…
Roronoa
  • 281
  • 3
  • 10
4
votes
3 answers

Is it possible to remove the little dropdown arrow in a JInternalFrame?

I'm using a JInternalFrame and I want to remove the dropdown in the upper left of the frame, as it serves no purpose (I've disabled resizeable, closable, etc.) I don't see a property for this, and I don't want to remove the entire title bar, as the…
tredontho
  • 1,273
  • 10
  • 14
4
votes
1 answer

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?
Nahir
1
2 3
27 28