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
4
votes
1 answer

Which components can be added in a JDesktopPane?

I'm having some trouble designing an MDI Application with Swing. I have no trouble implementing the JDesktopPane & JInternalFrames, my question will be a little more specific. Here is my base container Frame in a glance: package…
Erkan Haspulat
  • 12,032
  • 6
  • 39
  • 45
3
votes
1 answer

Scaling and zoom

I need to implement zoom for a JDesktopPane contained in a JScrollPane. I have had prior success zooming by overriding the paintComponent(...) method and calling scale(double,double). This is not working properly: the JInternalFrame's and JPanel's…
farm ostrich
  • 5,881
  • 14
  • 55
  • 81
3
votes
2 answers

JDesktopPane placement

I have a JDesktopPane and want to display JInternalFrames in a grid style without overlaying frames. The dymensions of the frames will vary so their location should be assigned dynamically. I could store the coordinates of the last placed frame but…
cksrc
  • 2,062
  • 3
  • 24
  • 39
3
votes
1 answer

Icons similar to desktop shortcuts inside JDesktopPane

As we are using JDesktopPane with JInternalFrames for our software, I am wondering if we can have Shortcut Icons (to particular Frame) placed inside the desktop pane (Similar to Windows desktop shortcuts). I searched for this but no luck. Any idea…
sk786
  • 394
  • 1
  • 4
  • 21
3
votes
2 answers

Add JInternalFrame to JDesktopPane using a button inside other JInternalFrame

This snippet code I got from https://stackoverflow.com/a/6868039/2240900 how to add the internal2 to desktoppane1 using a button placed somewhere in internal1. In the ActionListener added to your button you can use code like the following to get a…
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
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
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

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
2 answers

Content of JDesktopPane dissappears when resized - Java Swing

I have been working on Java Swing for a while. I paint something(draw some basic shapes like circle,rectangle etc) on a JDesktopPane and once I resize the frame window that contains jDesktopPane or drag some other window over this frame, then the…
Goku
  • 104
  • 1
  • 8
2
votes
6 answers

JInternalFrame to front and focussed

How does one push a JInternalFrame to the top of all the frames in a JDesktopPane?
davidahines
  • 3,976
  • 16
  • 53
  • 87
2
votes
3 answers

@Override error when java project transferred from ubuntu to xp

My current task is taking a Java project written and developed in Ubuntu NetBeans (extensively using the palette, which, it seems to me, locks me into continuing to use NB) and transferring it to XP, as it involves software that interfaces with a…
malenkylizards
  • 223
  • 1
  • 4
  • 13
2
votes
1 answer

Exception in the iconization of JInternalFrame with DefaultDesktopManager

I am trying to use DefaultDesktopManager (or a sub-class of this) to control the moves out of JInternalFrames from a desktop panel. I can prevent that a frame is moved out of its desktop pane, however, when I minimize the internal frame I get: …
Naive Developer
  • 700
  • 1
  • 9
  • 17
2
votes
1 answer

MDI JTable Overlap Area Repaint

I have a problem for my application in MDI mode. I open many windows (JInternalFrame contain JTable) under JDesktopPane. Some of the windows are overlapping and when they receive update in the table, it seems repaint all of the overlapping windows,…
2
votes
1 answer

Managing JInternalFrames in a Swing MDI

When creating an MDI Swing GUI, I have a number of JInternalFrames that are added to a JDesktopPane in a JFrame. I make these internal frames invisible by adding setVisible(false) in the constructor, after the initComponents method (as the GUI…
user1128272
1
2
3
9 10