Solved

Frame without TitleBar

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now