Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to make a dialog box?
how to make a dialog box? [message #29784] Mon, 12 May 2003 05:47 Go to next message
Eclipse UserFriend
Originally posted by: suhaani1233.rediffmail.com

i have read the help files on Dialog Boxes but there wasnt any full
fledged example(coding) on how to make a dialog box(except for the readme
tool).
Are there some other articles on how to make a dialog box?
Re: how to make a dialog box? [message #29928 is a reply to message #29784] Tue, 13 May 2003 08:33 Go to previous message
Eclipse UserFriend
Originally posted by: anthony.saucet.freesbee.fr

A simple MessageBox:

import org.eclipse.jface.dialogs.MessageDialog;
your class
MessageDialog.openInformation(window.getShell(), String Title, String
Text);

or

import org.eclipse.swt.widgets.FileDialog;
your class
FileDialog fileDial = new FileDialog(parent);
fileDial.setText("New file"); // sets the fileDialog title
String filePath =fileDial.open(); // gets the file path of the selected
file

hope this helps
anthony


sg wrote:

> i have read the help files on Dialog Boxes but there wasnt any full
> fledged example(coding) on how to make a dialog box(except for the readme
> tool).
> Are there some other articles on how to make a dialog box?
Previous Topic:add info in View pull down menu when they gonna changed depending on the item
Next Topic:Add-in possible?
Goto Forum:
  


Current Time: Tue Jul 08 22:38:38 EDT 2025

Powered by FUDForum. Page generated in 0.04494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top