Questions tagged [jinternalframe]

JInternalFrame is a lightweight Java Swing component that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.

JInternalFrame is a lightweight Java Swing component that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.
For task-oriented documentation and examples of using internal frames, see How to Use Internal Frames, a section in The Java Tutorial.

420 questions
2
votes
1 answer

closing the parent window in swing

Hi I am using JFrame to design swing application on clicking a menu in JFrame my requirement is to add JInternal frame on the JFrame and its working . Now the problem is that i want to refresh the Jframe according to the button clicked on…
adesh
  • 1,157
  • 3
  • 18
  • 28
2
votes
0 answers

JSplitPane divider location changed after focus lost

I have two internal frames. One of the internal frame has a panel which contains a table in scroll pane and text area which are separated by a split pane with vertical split. I have set setResizeWeight(0.8) and setOneTouchExpandable(true) for the…
Newbie
  • 2,979
  • 9
  • 34
  • 41
2
votes
2 answers

Keep iconified JInternalFrames on top always

I have 5 JInternalFrames in one JDesktopPane. I have to keep 4 JInternalFrames iconified and keep only 1 active. But when I maximize 1 JinternalFrame, other iconified JInternalFrames goes behind it, so I have to iconify the active JInternalFrame and…
2
votes
1 answer

making a modal JInternalFrame

I need to get lots of data (file select , text, date ,...) from user in a MDI JFrame. I need the input form that is a JInternalFrame be modal. How Can I make a JInternalFrame modal?
Ariyan
  • 14,760
  • 31
  • 112
  • 175
2
votes
1 answer

dynamic ImageIcon reduction for setFrameIcon

I have an ImageIcon that I used for a button to open this skillsFrame. This size of the image is 100x100px. As you can see in the screenshot if I just put the image it is too large(which is expected). My question is about how to scale the image to…
KisnardOnline
  • 653
  • 4
  • 16
  • 42
2
votes
3 answers

Resize makes things wrong

I want to create a JInternalFrame with some components in it. My aim is to design a bash console in Java. My frame is made of 4 components: JTextArea included into a JScrollPane JLabel with the text "Cmd:" JTextField JButton with the text…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
1
vote
2 answers

Minimizing Jinternal Frame without clicking the button

Is there any way to minimize/maximize the JinternalFrame without clicking the minimize/maximize button at the top-right corner of the jinternalframe? I followed this thread programmatically minimize a JInternalFrame?, specifically set…
Cocc Cocc
  • 371
  • 1
  • 5
  • 7
1
vote
1 answer

Setting Dimensions Of JPanel on JTabbedPane in JInternalFrame in Java

Users of my software need to be able to click on different tabs to see different types of data representations. However, the code I am including below does not show the requested data panel when the user clicks on a tab. You can re-create the…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
1
vote
1 answer

How to keep track of my internal frames?

This example code is a short version of my actual program: import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.*; public class Example extends JFrame { private JPanel contentPane; private JTable table; /** * Launch the…
Arjhun
  • 13
  • 6
1
vote
1 answer

wrapping a jframe

is there a way to open a program, that usually opens a new jframe, into an existing jframe? here is the explanation, I have downloaded a java game one of those reflexes ones and it opens in a jframe with a bunch of sub panels inside of the frame,…
user1179522
  • 145
  • 1
  • 3
  • 8
1
vote
1 answer

Maximize JInternalFrame event

InternalFrameListener does not implement the method of InternalFrame State Change. I was wondering to know that if any event can be implemented to check if the JInternalFrame is maximized or not? If yes,then how?
xyz
  • 2,160
  • 3
  • 20
  • 31
1
vote
1 answer

How to get JInternalFrame Titlebar properly styled by Insubstantial

I have a problem with the style of JInternalFrames under Insubstantial 7.0. I'm working with Eclipse and WindowBuilder for Swing. In the Widowbuilder Preview, JInternalFrames, that are dropped to a DesktopPane, have a nice shiny titlebar(using…
dajood
  • 3,758
  • 9
  • 46
  • 68
1
vote
2 answers

Disabling the shadow around JInternalFrames with the Aqua Look and Feel

On Mac OS X with the native Aqua Look and Feel, JInternalFrames have a shadow that is part of the frame border. When the internal frame is maximized, the shadow is still visible and takes a lot of space. Is there a way to remove this shadow without…
Emmanuel Bourg
  • 9,601
  • 3
  • 48
  • 76
1
vote
1 answer

How to make the JInternalFrame of the specified size?

I have a JFrame. I have added menu-bar to it. I have set its size and location using following line. frmMain.setBounds(0, 0, 1024, 768); // JFrame Next I have added a JInternalFrame to the code for JInternalFrame as…
Param-Ganak
  • 5,787
  • 17
  • 50
  • 62
1
vote
0 answers

Jython jInternalFrame Listener

I was able to get a listener working for a JFrame, but I'm missing something with doing the same thing with a JInternalFrame. I built up some basic code from various samples I found, and I'm hoping someone can tell me what I'm doing wrong in…