Solved

Frame without TitleBar

Posted on 2001-08-17
3
941 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

831 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