//The following program displays a simple non-modal dialog with an OK Button and no title-bar.
import java.applet.*;
import java.awt.*;
public class DialogTester extends Applet {
public void init( ) {
// This trick may not work in all browsers
// It works on Firefox on the Mac
Container container = this.getParent( );
while (! (container instanceof Frame)) {
container = container.getParent( );
}
Frame parent = (Frame) container;
Dialog myDialog = new Dialog(parent, false);
myDialog.setLocation(320, 240);
myDialog.add(new Label(“Hello “ + parent.getClass().getName()), BorderLayout.NORTH);
myDialog.add(new Button(“OK”), BorderLayout.SOUTH);
myDialog.pack( );
myDialog.show( );
}
}
Home      |      About Us      |     Portfolio      |      Services      |      Courses      |     Career      |      Cost      |      Contact Us
Services
  SEO   
  Link Building
  Data Entry
  Web Design and development
  Web Application development
 

Graphic and multimedia

  E-Commerce Solutions
  Software development
  Web Marketing & Promoting
  Internet Marketing
  IT Outsourcing
  Multimedia/CD Presentation
  Synopsis Ideas
  Project Ideas
  Placement Papers
  Live Project Training
  Programming & Projects
  Faq
  Training @balujalabs
 
 
Method
 

To display a simple non model dialog with an ok button and title box.

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1
2 To demonstrate border layout view.
3 Add checkbox, Textbox object in grid layout view.
4 To demonstrate Grid Bag Layout View
5 To produce a calculator applet using only a grid layout and nested panels.
6 To demonstrate manual layout.
7 To put up a window, that can be moved and resized. The window has a single text area component.
8 To display a simple non model dialog with an ok button and title box.
9 Centering a frame on the screen.
10 The applet to put the text of each member item selected to put the text field.