Solved

Frame without TitleBar

Posted on 2001-08-17
3
939 Views
Last Modified: 2013-11-23
Hai JAVA guys,

Can we create A frame(either it is AWT or Swing)without title bar or such type of window without title bar.thanks in advance.

Basha
0
Comment
Question by:shaikchanbasha
3 Comments
 
LVL 1

Expert Comment

by:shekoff
ID: 6397061
Try to use Window class !
The window not contain a tittle bar !
Regards
0
 
LVL 1

Accepted Solution

by:
sey7 earned 100 total points
ID: 6397779
Hello,

You have two examples here:

--------------AWT------------

import java.awt.*;
public class WindowEx extends Window {
  public WindowEx() {

    super(new Frame());
    Label    l = new Label("JWindow");
    add(l);
    setBounds(100, 100, 300, 300);
    setVisible(true);
  }
  public static void main(String[] args) {
       WindowEx w = new WindowEx();
  }
}




------------Swing--------------


import javax.swing.*;
public class JWindowEx extends JWindow {
  public JWindowEx() {

    super();
    JLabel    l = new JLabel("JWindow");
    getContentPane().add(l);
    setBounds(100, 100, 300, 300);
    setVisible(true);
  }
  public static void main(String[] args) {
       JWindowEx w = new JWindowEx();
  }
}


Best Regards,

            sey.
0
 

Author Comment

by:shaikchanbasha
ID: 6405182
Hai sey7 thank you for ur help.

Basha
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 96
login form jsp example 2 25
mysql jsp example issue 32 33
Is Applet the way to go for my drag and drop system? 8 13
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question