April 13, 2009 at 12:05 PM
Hi Friend,
You can use JInternalFrame class to create multiple frames in java as we have used in the following code:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
public class MultipleFrames{
JDesktopPane desk;
JInternalFrame frame1,frame2,frame3,frame4;
JFrame frame;
public static void main(String[] args) {
MultipleFrames d = new MultipleFrames();
}
public MultipleFrames(){
frame = new JFrame("Multiple Frames");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
desk = new JDesktopPane();
frame1 = new JInternalFrame("Frame1",true,true,true,true);
frame1.setBounds(20, 200, 150, 100);
frame1.setVisible(true);
frame2 = new JInternalFrame("Frame2",true,true,true,true);
frame2.setBounds(20, 140, 150, 100);
frame2.setVisible(true);
frame3 = new JInternalFrame("Frame3",true,true,true,true);
frame3.setBounds(20, 80, 150, 100);
frame3.setVisible(true);
frame4 = new JInternalFrame("Frame4",true,true,true,true);
frame4.setBounds(20, 20, 150, 100);
frame4.setVisible(true);
desk.add(frame1);
desk.add(frame2);
desk.add(frame3);
desk.add(frame4);
frame.add(desk);
frame.setSize(400,400);
frame.setVisible(true);
}
}
Thanks
Related Tutorials/Questions & Answers:
FramesFrames using awt how i can link two
frames?
for example i just want that when i press on the button of frame "frame1" it takes me on another window "frame2" with desired output and hide the "frame1" please help me out
HTML framesHTML frames Are there any problems with using
frames Advertisements
create framescreate frames How do I create
frames? What is a frameset
HTML framesHTML frames Do search engines dislike
frames frames - Java3Dframes how can i create multiple
frames in java? Hi Friend,
You can use JInternalFrame class to create multiple
frames in java as we...("Multiple
Frames");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE
ModuleNotFoundError: No module named 'frames'ModuleNotFoundError: No module named '
frames' Hi,
My Python... '
frames'
How to remove the ModuleNotFoundError: No module named '
frames'... to install padas library.
You can install
frames python with following command
HTML Frames ExampleHTML
Frames Example Hi,
Can anyone provide me HTML
Frames Example code? I have to one a web page say http://www.roseindia.net in Frame?
Thanks...="frame1.html"> tags for creating
frames in HTML.
Read at
Frames example
HTML combination of framesHTML combination of frames How do I specify a specific combination of
frames instead of the default document
Regarding frames in HTMLRegarding
frames in HTML I have created a html page including two
frames in it,one frame consists "search bar" and the other frame consists login page,when i click on "Sign In" button in login frame,it is displaying the results
java Frames - Java Beginnersjava Frames Hi friend,
Thanks for your reply. Can i use
frames in socket program. Hi anita,
I am sending you a link. This link will help you.
Please visit for more information.
http
ModuleNotFoundError: No module named 'gif-frames'ModuleNotFoundError: No module named 'gif-
frames' Hi,
My Python... 'gif-
frames'
How to remove the ModuleNotFoundError: No module named 'gif-
frames' error?
Thanks
Hi,
In your python environment you
ModuleNotFoundError: No module named 'gif-frames'ModuleNotFoundError: No module named 'gif-
frames' Hi,
My Python... 'gif-
frames'
How to remove the ModuleNotFoundError: No module named 'gif-
frames' error?
Thanks
Hi,
In your python environment you
ModuleNotFoundError: No module named 'gif-frames'ModuleNotFoundError: No module named 'gif-
frames' Hi,
My Python... 'gif-
frames'
How to remove the ModuleNotFoundError: No module named 'gif-
frames' error?
Thanks
Hi,
In your python environment you
Frames from a yuv video fileFrames from a yuv video file hi, please help me with the java code for extracting
frames of yuv video file. After extraction the images should be stored in jpeg format. Please help me
Frames from a yuv video fileFrames from a yuv video file hi, please help me with the java code for extracting
frames of yuv video file. After extraction the images should be stored in jpeg format. Please help me
displaying a physical webpage with frames in iframedisplaying a physical webpage with
frames in iframe i have iframe... in iframe.index.html page contains
frames divided into 2,each from different sources.i tried to display a sample webpage without
frames and it was a success
how to connect two swing frameshow to connect two swing frames how to connect two swing
frames
Hi Friend,
Try this:
1)LoginDemo.java:
import java.sql.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class LoginDemo extends
how to divide a web page into some frames.....how to divide a web page into some
frames..... how to divide 1 web page into some parts. i know it using
frames in html,bt how can we do it in jsp... page,bt m nt knowing how to divide that into
frames in jsp. Please go
Getting all frames in a JDesktopPane container Getting all
frames in a JDesktopPane container
... the number of
visible internal
frames in a JDesktopPane container. The JDesktopPane...
frames
role like the child frame of the JDesktopPane container.
Screen shots
How to create Multiple Frames using Java SwingMultiple
Frames in Java Swing
In this section, you will learn how to create multiple
frames. Java Swing provides the utility to show frame within another... JFrame("Multiple
Frames");
frame.setDefaultCloseOperation(JFrame.EXIT
How To Create Internal Frames In JavaHow To Create Internal
Frames In Java
In this tutorial we will learn about how... till the application is running
and want to do operations on an another
frames lying within the internal
frames.
To create internal
frames in Java you may
FrameworkFramework Which
frames are suitable for what
Event handling on an imageEvent handling on an image I want to divide an image into
frames and want to do event handling on the
frames backroundbackround how to add background image in
frames of swings
backroundbackround how to add background image in
frames of swings
java swings - Swing AWTjava swings hi everyone,
can we make a chain of
frames with JSplitpane and run a shell script in any one of those
frames java - Strutsjava how to use
frames in struts prog --
any sample example prog give
divide html page divide html page how to divide html page into 3 parts without using
frames SWING FRMESSWING FRMES hai SIR?
HOW TO DESIGN swing
Frames
send source code
SWING FRMESSWING FRMES hai SIR?
HOW TO DESIGN swing
Frames
send source code
product enquiry formproduct enquiry form how
frames are created and write a java program for product enquiry form using Jframe
jmfjmf how to extract the
frames from video file using java...give me the clear step by step explanation with code soon
how can i close particular frame in swings - Java Beginners, how can we close a particular frame when mulitple
frames are appearing as output when clcking close button. let us assume that we got three
frames as output in swings and three
frames are having their own close buttons and when i click
FRAMEFRAME WHILE I'M RUNNINGFILE OF A GUI PROGRAMME(JDBC CONNECTION) INSTEAD OF OUTPUT FRAME ONLY TWO BLANK
FRAMES ARE GETTING DISPLAYD... CAN ANYONE HELP ME TO SOLVE DS PROBLEM
FRAMEFRAME WHILE I'M RUNNINGFILE OF A GUI PROGRAMME(JDBC CONNECTION) INSTEAD OF OUTPUT FRAME ONLY TWO BLANK
FRAMES ARE GETTING DISPLAYD... CAN ANYONE HELP ME TO SOLVE DS PROBLEM
JFarme connectionJFarme connection I am making a system that requires to connect two already made J
Frames such that by clicking on a button on the first J Frame, the second J Frame appears and the first one disappears.what is the code to do
login page with imagelogin page with image I am writing program for login page.It consists of a image and the login details... how to write a java program using
frames... used multiple
frames to design but the position of image is changing when
HTML frameset exampleHTML frameset example Hi,
How to use html frameset for creating
frames in HTML?
Thanks
(adsbygoogle = window.adsbygoogle || []).push({});
Hi,
Please check the Vertical Frameset in HTML example code