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

CubicCurve2D connecting two JInternalFrame instances

I have been trying to find a way (in Swing) to connect two JInternalFrames with a CubicCurve2D (otherwise known as a cubic bezier curve). The overall effect I'm trying to achive is an interface similar to Yahoo! Pipes (the curve should go from the…
knpwrs
  • 15,691
  • 12
  • 62
  • 103
4
votes
2 answers

Java Swing arranging JInternalFrames

Is there any default functionality for arranging JInternalFrames in Java Swing? I would like to have the Cascade, Tile, etc... functionality within my Java Swing application like this: http://www.codeproject.com/KB/cs/mdiformstutorial.aspx I could…
juFo
  • 17,849
  • 10
  • 105
  • 142
4
votes
1 answer

How to do something when Close (X) button is clicked in JInternalFrame

I got a assignment to create a JInternalFrame that can call mutiple of my applet work (last assignment call SpherePainter) and can count how many 'applets' are running inside the JinternalFrame. [the applet are running inside another…
user3319146
  • 47
  • 1
  • 8
4
votes
2 answers

JInternalFrames to listen to JDesktopPane events

Is there any easy way to have my jinternalframes be the best of both worlds embedded when I want them to act as part of jdesktoppane also movable and able to handle their own events Hopefully this picture will help out. Right now I have my code…
4
votes
2 answers

Example Program JMenubar on JInternalFrame when i Maximize the JInternalFrame

Hi I need an Example program in which When i maximize the JInternalFrame the JMenuBar of JFrame should set on JInternalFrame and When i minimize the JInternalFrame again the JMenuBar should leave JinternalFrame and set to JFrame as shown…
Zaheer
  • 123
  • 5
  • 14
3
votes
1 answer

Scaling and zoom

I need to implement zoom for a JDesktopPane contained in a JScrollPane. I have had prior success zooming by overriding the paintComponent(...) method and calling scale(double,double). This is not working properly: the JInternalFrame's and JPanel's…
farm ostrich
  • 5,881
  • 14
  • 55
  • 81
3
votes
2 answers

How to keep menu item on top of text area?

I'm using netbeans to write the GUI. I have a menu bar with few menu items and the main window has a text area all over it. when I press the menu item,I cant see it because the text area is on top (the menu item internal frame is behind the text…
Avi
  • 69
  • 1
  • 2
3
votes
2 answers

JDesktopPane placement

I have a JDesktopPane and want to display JInternalFrames in a grid style without overlaying frames. The dymensions of the frames will vary so their location should be assigned dynamically. I could store the coordinates of the last placed frame but…
cksrc
  • 2,062
  • 3
  • 24
  • 39
3
votes
2 answers

Custom Java Window Title Bar Menu

I'm trying to allow the user to change the title of a window in Java without adding components to the window itself. I'm actually trying this with a JInternalFrame, but figure the solution should be similar for a JFrame. I simply want to add an…
E-rich
  • 9,243
  • 11
  • 48
  • 79
3
votes
2 answers

How to prevent JFrame alert effect in taskbar

I am a Java SE developer and our program only run on windows OS, the program need to open files and display in UI, we display the file contents in JInternalFrame and always setselected(true) when the file is opened. Recently we updated our program…
exister
  • 41
  • 5
3
votes
2 answers

How can to create a rollover or hover effect to rows in a JTable?

In my application, I'd like to create a rollover effect with the rows of a JTable. For example, when the mouse enters the row, the background color of that row will change; conversely, the color of that row will return to normal when the mouse exits…
3
votes
1 answer

How to change size of JInternalFrame displayed in JDesktopPane that implements MigLayout?

In my project,i am using JFrame as main application window and placed JDesktopPane in this JFrame. I set MigLayout to the JDesktopPane, now the problem is that i have been able to display JInternalFrame on this JDesktopPane but unable to resize this…
FullStack
  • 665
  • 11
  • 26
3
votes
2 answers

Invoke a method of a JFrame from a JInternalFrame without do a new Instance

I have a little big problem doing this: From a JFrame, I call a JInternalFrame, so, I want to call a method of the JF from the JIF. The problem is, if I make a new instance of this JF, the changes are not applied, because it's not the same original…
Vlad
  • 300
  • 1
  • 4
  • 13
3
votes
3 answers

How can handle JInternalFrame Close opeartion from JDesktopPane?

I have one JFrame(HMSDoctor) and in that i am calling one JInternalFrame(CurrentOPD) by using JDesktopPane. //opening JInternalFrame(CurrentOPD) by using JDesktopPane in JFrame(HMSDoctor). JDesktopPane jdp=new JDesktopPane(); jdp.add(new…
Daxesh Prajapati
  • 151
  • 3
  • 13
3
votes
2 answers

Add JInternalFrame to JDesktopPane using a button inside other JInternalFrame

This snippet code I got from https://stackoverflow.com/a/6868039/2240900 how to add the internal2 to desktoppane1 using a button placed somewhere in internal1. In the ActionListener added to your button you can use code like the following to get a…
1
2
3
27 28