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

When making an MDI should I use JDesktopPane or JFrame

It appears as if there is very little use of JDesktopPane but it doesn't appear to be deprecated. Are they any advantages of using JDesktopPane instead JFrame? I mainly plan on putting a few JInternalFrames into it. EDIT: I didn't realize that a…
davidahines
  • 3,976
  • 16
  • 53
  • 87
0
votes
1 answer

Is it possible make all JFrames the internal program uses into JInternalFrames and place them in a JDesktopPane?

The goal is to have the user select a java program, then my program opens up a JInternalFrame with a JEditorPane inside it as the console and places said JInternalFrame in a JDeskopPane. Is it possible to change all the Windows the user's program…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
2 answers

How to close JInternalFrame by pressing escape key?

I created one JFrame with JDesktopPane, in which I am calling JInternalFrame. Now I want to close that internal frame by pressing escape key. I tried 2-3 ways, but no output. I did that by using code given below: public static void…
user6725738
  • 13
  • 1
  • 4
0
votes
1 answer

Open jInternalFrame at the centre of jDesktopPane

I am creating and application in Java using Netbeans. I have 1 jFrame on which there is few jmenus and a jdesktoppane and jinternalframes. Now my problem is I am not able to set jInternalFrame at the centre of jDesktopPane. I gor some help from…
Amit Roy
  • 33
  • 5
0
votes
1 answer

Adding a JInternalFrame in Java doesn´t work

I have tried in many ways to add an internal frame to my existing one. I have tried with and without JPanel. But nothing worked and I don´t have a clue why. Anyone? public class Menu_new extends JFrame{ private BufferedImage background =…
0
votes
1 answer

Transparent JDesktopPane

I would like to set the JDesktopPane to transparent and allow me to click through to what is underneath (e.g.. Desktop icons etc). The internal frame should be left opaque and able to be repositioned around the screen as it currently does. Any…
volican
  • 137
  • 1
  • 14
0
votes
0 answers

Get values from instantiated GUI classes within a desktoppane

I am instantiating a class with jtextfield on it and place it in a desktoppane. If for example, I instantiated this class 5 times, how could I get the values from the textfields of different windows? The only values that were returned are from the…
0
votes
1 answer

create vertical JDesktopPane at the left side of Jframe

i want to create a vertical JDesktopPane thus when a JInternalFrame minimizes its icon adds at the left side of Jframe and vertically below other icons not next to the previous icons and horizontally. it may be the same as linux or mac desktopPane…
arash
  • 176
  • 1
  • 5
0
votes
1 answer

Displaying JDesktopPane in a JPanel

I am having some difficulty getting a JDesktopPane (that contains a JInternalFrame) to add to a JPanel. What is the proper way to do this? What am I doing wrong? Here is my bare bones example: import javax.swing.*; import java.awt.*; public class…
feltersnach
  • 406
  • 3
  • 20
0
votes
0 answers

JInternalFrames don't always show up

I've got 4 JInternalFrames that I've added to a JDesktopPane which is then added to the content pane of a JRibbonFrame (I'm using the Flaming api). I add the JDesktopPand to the JRibbonFrame, set the JRibbonFrame to visible and then add the…
Eric M
  • 57
  • 1
  • 8
0
votes
1 answer

jpanel doesn't match with jdesktop pane when resizing

I had an application in Java have a jdesktop pane with 3 normal panels. The problem occurs when I resize the MDI window - the three panels don't match with the MDI window. How can I fix this knowing that I'm using netbeans IDE?
Azza
  • 41
  • 6
0
votes
2 answers

MDI Application in java

I am making a MDI application in java using netbeans. the issue is that i have two buttons: Add employee and search employee. When i click Add employee, the internal frame for add employee opens up in the desktop pane, and when i click search…
0
votes
1 answer

Adding Image to JPanel inside JInternalFrame

I want to add a Image into a JPanel, the JPanel is inside JInternalFrame, and the JInternalFrame has a parent, the JDesktopPane. I've tried with another class to add a Image from a path, and then, jPanel1 = new Imagen(); , the class…
Allan Ramirez
  • 125
  • 1
  • 15
0
votes
0 answers

Weird Interaction Between JDesktopPane and JInternalFrame (Bug?)

While I was debugging earlier, I discovered something a little strange. With the following code, the width of the JDesktopPane changes, seemingly without any interaction, directly or indirectly. import javax.swing.*; public class Main { public…
0
votes
1 answer

How to make JInternalFrame(s) in JDesktopPane non-overlapping

I have multiple JInternalFrame(s) inside a JDesktopPane. All the JInternalFrame(s) are undecorated and I manage the dragging using mouse listeners. However, I want the internal frames to be non overlapping, i.e., one internal frame should not…
Pratanu Mandal
  • 597
  • 8
  • 23