Size « JInternalFrame « Java Swing Q&A





1. How to make the JInternalFrame of the specified size?    stackoverflow.com

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 ...

2. JInternalFrame inital size    coderanch.com

3. JInternalFrame minimised size    coderanch.com

Does anyone know if there is anyway to control the size of a minimised frame (i.e the size of the icon used in the desktop pane)?.. The problem I am having is that the title of the internal frame is not being fully represented in the minimised frame - You have to maximise the frame, in order to see what the ...

4. minimizing the JInternalFrame    coderanch.com

5. Problem sizing a JFrame containing JInternal Frames.    coderanch.com

import javax.swing.*; import java.awt.*; public class Room extends JFrame { Table table1; public Room( String title ) { super(title); table1 = new Table("table1", false); table1.pack(); table1.setVisible(true); JDesktopPane dtPane = new JDesktopPane(); dtPane.add( table1 ); setContentPane( dtPane ); } public static void main( String[] args ) { Room room = new Room("Fred's Game Room"); room.setDefaultCloseOperation( EXIT_ON_CLOSE ); room.pack(); room.setVisible(true); } class Table ...

6. JInternalFrame iconifying size    coderanch.com

This was giving better control with Y value of icons. Sometimes they were not aligned in a straight line. // Specify the height of the iconified internal frames int iconX = 0; int iconWidth = 160; int iconHeight = 28; @Override public void iconifyFrame(JInternalFrame f) { super.iconifyFrame(f); JDesktopIcon icon = f.getDesktopIcon(); // desk is the JDesktopPane object int iconY = desk.getSize().height ...