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
1
vote
0 answers

How to prevent the activation JInternalFrame

I try to create Multiple Document Interface. I use JDesktopPane and added three JInternalFrame on it. It looks like that: It works good but if I activate the first window it closes the second and third window and I was no longer able to open…
1
vote
1 answer

JInternalFrame does not show up

from my MainFrame I create a internal Frame and add that to my desktop pane, but the internal Frame just won't show up. I tried to figure it out for 3 hours now and I kinda need some help with it. Before I implemented the observer pattern it just…
Quatsch
  • 361
  • 1
  • 8
  • 29
1
vote
3 answers

Background settings for a JDesktopPane

I'm using a self-made DesktopPaneUI for a JDesktopPane, I've written the proper methods for the class, and I'm running into trouble. When I resize the JDesktopPane, the background image doesn't resize with the frame. The image appears to be clipped…
EricR
  • 1,487
  • 2
  • 21
  • 42
1
vote
1 answer

Automatically resize JPanel without use BorderLayout.CENTER

I have a JPanel inside a JDesktopPane and I need to resize the panel automatically when the size of desktopPane changes. The size of panel always needs to be the same of desktopPane. I can't use BorderLayout.CENTER because if I use it, I cant…
Computered
  • 440
  • 1
  • 7
  • 21
1
vote
1 answer

Java JDesktopPane/JInternalFrame Centering Issue

I'm working with JDesktopPane's and JInternalFrame's and I'm having some difficulty centering the frames in the desktop. What I've found is that when I determine the center of the desktop using getWidth() and getHeight(), the position I get is the…
1
vote
1 answer

Java - Problem when Resizing a JInternalFrame

In a previous SO question, I was talking about somes issues dealing with my MDI architecture. I have now another problem when resizing my JInternalFrame. Here is a short video that illustrates it. I have a class: Cadre which is basically my…
Amokrane Chentir
  • 29,907
  • 37
  • 114
  • 158
1
vote
3 answers

Java - How to make a set of JInternalFrame independant of each other?

I'm programming a short Paint program like and I'm trying to make an MDI architecture for it. To make that happen, I used JInternalFrame inside a JDesktopPane. Although I kind of obtain multiple frames, there are not really working…
Amokrane Chentir
  • 29,907
  • 37
  • 114
  • 158
1
vote
0 answers

Problems with two JInternalFrames sizes

I have a JDesktopPane where I add and show a JInternalFrame called ListarEmpleado.java. From that ListarEmpleado.java I open another JInternalFrame called InformacionEmpleado.java doing click in a button. I have a equation to locate…
Cristiam Mercado
  • 573
  • 12
  • 34
1
vote
1 answer

Moving JInternalFrames from one JDesktopPane to another

I have been designing a Swing-based tabletop RPG program to facilitate text-based roleplay with GUI control elements. To facilitate this, each running client gets a main desktop ("GM Desktop" on the hosting client and "Player Desktop" on the remote…
1
vote
1 answer

How to Close JInternalFrame when JButton click and show another JInternalFrame?

For Example: When JButton1 click JInternalFrame1 Show on the JDesktopPane And when JButton2 Click JInternalFrame1 Close and JInternalFrame2 Show on the JDesktopPane. thx before Edit: with code from comment if (JInternalFrame1 == null) { …
Schreiner
  • 57
  • 1
  • 1
  • 10
1
vote
1 answer

Add a class inside a JDesktopPane

I've been searching for this problem but it doesn't work for me. What I did is that I have directories like this |-> Games (folder) |----> GamesCombined.java and classes |----> games (folder) |--------> pacman (folder) |------------> PacmanGame.java…
Juvar Abrera
  • 465
  • 3
  • 10
  • 21
1
vote
1 answer

Issue Getting a JInternalFrame to Appear

So, I have, at this point, just a simple JFrame with a simple JPanel inside of it. (That is, it's contentPane is a JPanel.) There's a menu bar in the JFrame with a button that converts the current JFrame to a JInternalFrame - it set's the JFrame's…
Steven
  • 1,709
  • 3
  • 17
  • 27
1
vote
0 answers

Internal frame changes does not compile

I'm making a small application. I have a JFrame and there is a desktop pane in it. I want to load a JInternalFrame to it. My code is as below. void dpload(){ Patients patient = new Patients(); dp_patient.add(patient); …
Hasi007
  • 146
  • 2
  • 14
1
vote
2 answers

How to close previous jInternalFrame when open new jInternalFrame in the jDesktopPane

I created MDI (Multiple Document interface) in java using netbeans in which i have two jbuttons and one jdesktoppane so when clicked on both button then both jinternalframes are opened in same jdesktoppane so i want how to close previous…
Ayaz Ali
  • 311
  • 2
  • 7
  • 16
1
vote
2 answers

How can add JLabel on JDesktopPane

I want to add a JLable on my JDesktopePane..i wrote the below given code..but the Label is not displayed on the pane. { frame1.setContentPane(desktop); frame1.setSize(900,700); frame1.setVisible(true); …
learner
  • 331
  • 1
  • 9
  • 22