java panels

java panels

View Answers

April 8, 2009 at 1:33 PM

Hi friend,

Use the following code:

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.Border;
public class AB extends JDialog{
public AB(JFrame frame, String str){
super(frame,str);
setUndecorated(true);
getRootPane().setWindowDecorationStyle(JRootPane.NONE);
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent evt){
System.exit(0);
}
});
}
public static void main(String[] args){
try{
AB frame = new AB(new JFrame(),"");
JPanel panel = new JPanel();
Border border = BorderFactory.createTitledBorder("Welcome");
panel.setBorder(border);
JLabel lbl = new JLabel("RoseIndia");
panel.add(lbl);
frame.add(panel);
frame.setSize(300, 150);
frame.setVisible(true);
}
catch(IllegalArgumentException e){
System.exit(0);
}
}
}
Thanks









Related Tutorials/Questions & Answers:
java panels - Java Beginners
java panels  how can i remove the minimize, maximize and the cancel button of frame how can i add border to a JPanel  Hi friend, Use the following code: import javax.swing.*; import java.awt.*; import
ModuleNotFoundError: No module named 'panels'
ModuleNotFoundError: No module named 'panels'  Hi, My Python... 'panels' How to remove the ModuleNotFoundError: No module named 'panels'... to install padas library. You can install panels python with following command
Advertisements
ModuleNotFoundError: No module named 'grimoirelab-panels'
ModuleNotFoundError: No module named 'grimoirelab-panels'  Hi, My... named 'grimoirelab-panels' How to remove the ModuleNotFoundError: No module named 'grimoirelab-panels' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'multilevel-panels'
ModuleNotFoundError: No module named 'multilevel-panels'  Hi, My... named 'multilevel-panels' How to remove the ModuleNotFoundError: No module named 'multilevel-panels' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'grimoirelab-panels'
ModuleNotFoundError: No module named 'grimoirelab-panels'  Hi, My... named 'grimoirelab-panels' How to remove the ModuleNotFoundError: No module named 'grimoirelab-panels' error? Thanks   Hi, In your
navigation between panels when item is selected from jcombobox - Swing AWT
navigation between panels when item is selected from jcombobox  hi well i have a problem i have one main panel and on that there is one more panel... on JComboBox in Java visit to : http://www.roseindia.net/java/example/java/swing
Maven Repository/Dependency: org.xwiki.platform | xwiki-platform-panels-ui
Maven Repository/Dependency of Group ID org.xwiki.platform and Artifact ID xwiki-platform-panels-ui. Latest version of org.xwiki.platform:xwiki-platform-panels-ui dependencies. # Version Release Date
java compilation error - Java Beginners
java compilation error  Hello madam/sir, i m a beginners in java. My problem is that i want to connect a login form to a frame containing 4 panels. how could i do it?Please help
how to save a gui form in core java
how to save a gui form in core java  please help me i am java beginner how to save a jframe containing jtable and panels in java thank you
java - Java Beginners
java  hi all, In Java swings, I created a array of JPanel and added listeners to it to move. These panel has null layout. When i run......the application is refreshed.. i want the bounds of panels should not change...when
java
java  Write a Java applet that draws a rectangle or an oval based on the width and height given by the user. Provide two text fields for the user... object while the text fields and buttons should be laid out on another two panels
Log4Fx
panels. It can output the logging information to any computer on network as well
JAVA - Java Beginners
of code and the action listeners. You will need two panels ? one for the drawing... or sad ? to draw. Java Hint The action listener you produce to respond... this by calling the Java repaint() method. This is a standard Java method that causes
Java Final Project - Java Beginners
Java Final Project  I am having a real hard time with this java...); inputText.setWrapStyleWord(true); //instantiate two panels, one for input and output Panel... = getContentPane(); //use borderlayout to position our two i/o panels container.setLayout
Java Server Faces (JSF)
Java Server Faces (JSF)      ... to build rapid data-driven Java web applications. To make efficient... Efficiency in Java programming language and well skilled in developing Java Server
Java JLayeredPane example
Java JLayeredPane example In this section we will discuss about how to overlap... of overlapping of three panels. These panels will be overlapped after clicking.... Each panels are of different sizes and positioned at different axes. Now added
java - JDBC
); //initializing panels panel1 = new JPanel(); panel2 = new JPanel(); panel3... -------------------------------------- Read for more information. http://www.roseindia.net/java/example/java/awt/ Thanks. Amardeep
programming - Java Beginners
); //initializing panels panel1 = new JPanel(); panel2 = new JPanel(); panel3... -------------------------------------- Read for more information. http://www.roseindia.net/java/example/java/awt/ Thanks
Google Web Toolkit
; Google Web Toolkit (GWT) is a Java software development framework that makes... by compositing other Widgets. Lay out Widgets automatically in Panels. Send your... serializable Java classes for your request and response. In production, GWT
What is Java Swing?
, panels and sliders etc. All AWT flexible components can be handled by the Java... What is Java Swing?       Here, you will know about the Java swing. The Java Swing provides
java - Java Beginners
,BorderLayout.NORTH); } //Panel for center containting 3 panels JPanel
java - Java Beginners
java  Hi, i have some problem in my code.In this code i have made two Panels(p1 and p2) and one tabbed pane(tp) in which i have added second panel(p2). on panel 1 i have one button(Go to Tabbed Pane). I want, when i will click
Java - Java Beginners
); //------------------------------------------------------------------------------------------------------------ // Add Panels to Pane contentPane.add
Tab Container
Tab Container  AM i going to have loading problems when i let the user to create an infinite number of tabs ??? btw am trying to create a single page application with multiple tabs (or panels
java
java  diff bt core java and java
java
java  what is java
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
Java
Java   Whether Java is pure object oriented Language
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
difference - Applet
as JFC?s (Java Foundation classes). 2) AWT components use native methods Swing components use the methods that are written in Java. Therefore AWT is heavy... are rectangular 5) Swings components are made in pure java and they are platform
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java   What is ?static? keyword
java
java  RARP implementation using java socket
java
java  sample code for RARP using java
java
java  Does java allows multiline comments
Java
Java  how to do java in command prompt
java
java  Write a java code to print "ABABBABCABABBA
java
java  write a program in java to acess the email
java
java  send me java interview questions

Ads