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

JFrame slows down as buttons are pressed?

The code below shows my program that, when switches between methods home(), plus, minus(), times() and divide(), they removeAll() of the corresponding JPanels , addPnl() subPnl() and so on - these being stores in a JDesktopPane. I'm quite new to…
user1583010
0
votes
2 answers

How to set JDesktopPane size

i'm developing a java application with a main Panel in which i add a JDesktopPane. users clicking on JButton, will show a JInternalFrame. My problem is that if i use Mac OSx look and feel, the JDesktopPane shows with correct size the JInternalFrame,…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
0
votes
0 answers

How to show an error message inside JDesktop pane on top of internalframe

i want to display error massages inside the jdesktop pane in java i have not done anything yet and am a beginner sorry for the broken English i tried using JDialog but comes up on top of everything thisnthe code am using to call the JDialog private …
kabwe
  • 1
  • 1
0
votes
1 answer

Components inside JDesktopPane not showing

I'm trying to make a game for a project and I have a JDesktopPane modified for images as a basic pane and then I have 2 other DesktopPanes for each of the players. Inside the players panes (which I call fields in the code) I need to display some…
0
votes
1 answer

How do I create a JLabel in the background of a JDesktopPane?

I'm working with a JDesktopPane with drag-and-drop functionality and everything's going well so far, but I want to add a JLabel at the center of the window that says something along the lines of "drag and drop file here" purely for decorative…
0
votes
1 answer

How to change colour of jDesktopPane from properties

I am creating a project that requires the use of multiple internal frames and interconnecting it through the desktop pane. I have tried changing the colour of the desktop pane (from the property->background)but when I run it it's still that default…
Namita Geo.
  • 1
  • 1
  • 5
0
votes
1 answer

How to tell a JDesktopPane to fill the entire screen of JFrame

Any body please suggest the code How to tell a JDesktopPane to fill the entire screen of JFrame in Java Netbeans IDE.
user2607417
0
votes
1 answer

Centering a JInternalFrame inside JDesktopPane not working correctly

I am attempting to create a JInternalPane inside of the JDesktopPane but it is not centering correctly. Here is how the JDesktopPane is created (I am using Netbeans drag-and-drop): JDesktopPane desktopPane; Dimension screenSize =…
Ebad
  • 131
  • 11
0
votes
1 answer

JDesktopPane and JInternalFrame help!

Greetings, I have a question with regards to limiting duplicate JInternalFrames to a JDesktopPane. Basically, adding an instance JInternalFrame to the JDesktopPane is comprehensive. But limiting duplicate JInternalFrame of the same instance on the…
Cyril Horad
  • 1,555
  • 3
  • 23
  • 35
0
votes
2 answers

Write a text on JDeskopPane

I want to write a multiline text (3-4 lines is ok) on the bottom right corner of a JDesktopPane, how can I do this? The text is not fixed, it can change every time i start the swing application but once the application is started it remains the…
res1
  • 3,482
  • 5
  • 29
  • 50
0
votes
0 answers

While launching jar jdesktoppane background image not showing

My application moved from jdk6 to jdk8, netbeans 6 to NB 8. In netbeans I am able to see application background image but when i create jar and launch app with jar i.e java -jar appName.jar Everything working fine, just background image is NOT…
ashmalvi
  • 33
  • 3
0
votes
1 answer

JDesktopPane won't hide it's frame

I wanted to hide my JDesktopPane in a trigger of button. But this won't hide itself. I created a static void method that hides the frame and calling this in actionPerformed. Do I need to run another EDT to hide my frame? Any tips would…
Francisunoxx
  • 1,440
  • 3
  • 22
  • 45
0
votes
1 answer

How to refresh a component on a JDesktopPane

I've added a "Terminal" that extends JInternalFrame into my JDesktopPane. terminal constructor is like public Terminal(Executable exec) where Executable is an interface that contains the abstract method elab, and I store that instance into a…
0
votes
1 answer

How to programmatically maximize JDesktopPane

I am using JDesktopPane, and I want it to be maximized when I load it. How can I do it?
noke
  • 3
  • 1
  • 2
  • 3
0
votes
1 answer

Swing: how get active JInternalFrame

I have problem with getting active JInternalFrame. I need to indicate an active ImageInternalFrame(my class, thats extend JInternalFrame) because I will perform some operations on it. I do not know how to solve it, can somebody help me? Here is my…
Kamczatka
  • 151
  • 1
  • 2
  • 15