Questions tagged [jdesktoppane]

In Java Swing application, a JDescktopPane is a container used to create a multiple-document interface or a virtual desktop.

In Java Swing application, a JDescktopPane is a container used to create a multiple-document interface or a virtual desktop.

More Info

136 questions
13
votes
3 answers

Scrollable JDesktopPane?

I'd like to add scrolling capability to a javax.swing.JDesktopPane. But wrapping in a javax.swing.JScrollPane does not produce the desired behavior. Searching the web shows that this has been an issue for quite some time. There are some solutions…
Greg Mattes
  • 33,090
  • 15
  • 73
  • 105
10
votes
3 answers

JDesktopPane preferred size set by content

I have been trying to tame JDesktopPane to work nicely with a resizable GUI & a scroll pane, but am having some troubles doing so. It seems that unless the drag mode is outline, the desktop pane will not resize as expected (when an internal frame…
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
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
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
6
votes
3 answers

Making JavaFX Alerts/Dialogs Modal within Swing Application

So once again we are in the process of converting our existing Java application that was using entirely Swing to using JavaFX. However, the application will not be using JavaFX entirely. This seems to be causing some issues with Alerts/Dialogs and…
Tommo
  • 977
  • 14
  • 35
6
votes
1 answer

How to change background color of jDesktopPane which is created usning tools in netbeans

By unsing netbeans ide , I created a JDesktopPane inside the JFrame. and I cannot change the color of the jdesktopPane.. I tried all I can. But when I open the JFrame .. the JDesktopPane inside that JFrame is in some blue color background. Please…
sham999
  • 121
  • 1
  • 3
  • 12
5
votes
4 answers

Disable the Ctrl-Alt-Delete event through Java program

I am creating a desktop application using the JDesktopPane. I'm almost complete, but when I press ctrl + alt + del, it leaves my application. How can I prevent that action?
Arivu2020
  • 2,485
  • 7
  • 25
  • 24
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
2 answers

CubicCurve2D connecting two JInternalFrame instances

I have been trying to find a way (in Swing) to connect two JInternalFrames with a CubicCurve2D (otherwise known as a cubic bezier curve). The overall effect I'm trying to achive is an interface similar to Yahoo! Pipes (the curve should go from the…
knpwrs
  • 15,691
  • 12
  • 62
  • 103
4
votes
3 answers

Remove maximize, minimize, close button from JPanel

In JDesktopPane, i have included a JPanel with tree view listing some devices. I dont need those resizable and close options in that panel show in the figure. (Maximize, Minimize, Close). I tried many ways, but not able to hide those functions. Any…
Firnaz
  • 553
  • 7
  • 31
4
votes
2 answers

JInternalFrames to listen to JDesktopPane events

Is there any easy way to have my jinternalframes be the best of both worlds embedded when I want them to act as part of jdesktoppane also movable and able to handle their own events Hopefully this picture will help out. Right now I have my code…
1
2 3
9 10