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

Visibility issue of JInternalFrame

I am having one Application form. I designed it using JAVA SWING. I used many SWING Components like MenuBar,JPanel,JDesktopPane,JInternalFrame and many more. On the Click event of one JButton i launched JInternalFrame inside the JDesktopPane. But…
Nirav Kamani
  • 3,192
  • 7
  • 39
  • 68
0
votes
1 answer

Close the particular JInternalFrame on button click

I am creating more than one JInternalFrame in the JDesktopPane. Each frame having one button. I want to close the particular frame on which button is clicked. internalFrame = new JInternalFrame("Internal Frame", true, true, true, true); …
Raja
  • 239
  • 1
  • 5
  • 18
0
votes
1 answer

JDesktopPane and BorderLayout

I am writing a program that attempts to simulate the evolution of a species, and it has a window that looks like this: Originally the empty area in the bottom right was a Panel, and it is intended to draw a visual representation of the specimens,…
csga5000
  • 4,062
  • 4
  • 39
  • 52
0
votes
0 answers

Setting up JDesktopPane as Accessible Parent to JInternal Frame

I want to set JDesktopPane as Accessible Parent to JInternal Frame. But JInternalFrame properties does not show JdesktopPane on accessible parent's list. My MDI application has JdesktopPane and Internal Frames load on top of JdesktopPane. I have…
amal
  • 3,470
  • 10
  • 29
  • 43
0
votes
1 answer

How to add scrollable JTextArea to jDesktopPane

I was try several opinion but neither of them it seams to work. This method returns JTextArea private static JTextArea getJArea() { if (jArea == null) { jArea = new JTextArea(); jArea.setBounds(new Rectangle(16, 153, 468,…
vaske
  • 9,332
  • 11
  • 50
  • 69
0
votes
6 answers

only open one JInternalFrame in one time

I've created a Swing application with several JInternalFrames which gets added to a JDesktopPane on the event of a mouse click. I want only one instance of the same Internal frame to be present on the DesktopPane. I dont want the same frame to…
pixylife
  • 463
  • 4
  • 12
0
votes
1 answer

Add an External Frame in a JDesktopPane Java

I have a Frame called " Menu_Project". I have another Frame called "Main_Menu" where it has a JButton and upon clicking on the Button, I want to call the frame " Menu_Project" inside the JDesktopPane. I tried a to follow a tutorial on YouTube at…
Ms_Joe
  • 160
  • 2
  • 7
  • 16
0
votes
1 answer

My internal frames don't earn focus after opening... (Java)

I have a menu with items that open internal frames, but every time I need to click twice in the frame. One time to give focus to the Int.frame and the second time to actually do something (give focus to a textfield). So, here is my question: It's…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
0
votes
2 answers

Why Mainframe JButton appear foreground of JInternalFrame?

I am creating a Swing Application. I have one main JFrame and a JDesktopPane. I added one button and one label on main frame. But if I open any JInternalFrame on Main Frame button and label covers the internal frame. (JButtonand JLabel appear…
learner
  • 331
  • 1
  • 9
  • 22
0
votes
1 answer

Could you explain these statements?

I've come across an example on the internet which uses both of these statements: dp.add( bg , new Integer( 50 ) ); (dp being a JDesktopPane object and bg being a JLabel) setLayeredPane( dp ); If you would like to know how they are used, then this…
user1583010
0
votes
1 answer

How to Lock Jinternal Frame inside JDesktopPane

I am using JDesktopPane and Jinternal Frame. I want to Lock Jinternal Frame inside JDesktopPane . Suggest which method or property needs to change.
Code Hungry
  • 3,930
  • 22
  • 67
  • 95
0
votes
3 answers

JDesktopPane boundary - JInternalFrame's not filling up entire desktop

I'd like to have my JDesktopPane be such that JInternalFrames that are inside of it can be maximized and fully block out the blue background (well, blue on a Mac at least) of the JDesktopPane. If you run this demo, you'll see that if you maximize…
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
0
votes
3 answers

Java Window Event - Maximize. How to hardcode?

I have a JDesktopPane and a JInternalFrame. I'd like the JInternalFrame to automatically maximize after I make it. How can I hardcode the "maximize window" event?
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
0
votes
3 answers

How to add a JDialog in to desktop pane or just call from an internal frame

I am working on a project that uses MDI form in java. I have created a frame and then added a desktop pane to it. My project uses lot of internal frames. Also those internal frames require to show custom dialogs that i have created on my own. for it…
Jasir
  • 677
  • 1
  • 8
  • 26
0
votes
2 answers

Swing: How could I get JInternalFrame treated equally to other components inside a container?

Background information: I am implementing a visual diagram editor, which consists of different complex elements (re-sizable, with title bar, sub-elements) and different simple elements (not re-sizable, no title bar, no sub-elements). All elements…
ivan_ivanovich_ivanoff
  • 19,113
  • 27
  • 81
  • 100