Results 1 to 1 of 1
-
Creating a tabbed display with a single tab
Java Code:import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.*; /** * Creates a tabbed display with a single tab */ public class TabSimple { public static void main(String[] args) { new TabSimple().run(); } public void run() { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setText("Simple Tabs"); TabFolder tabFolder = new TabFolder(shell, SWT.NONE); TabItem tabItem = new TabItem(tabFolder, SWT.NONE); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
Similar Threads
-
Tabbed pane using struts 2.x......?
By prabhurangan in forum Web FrameworksReplies: 1Last Post: 07-19-2008, 07:48 AM -
Creating a tabbed display with four tabs and a few controls
By Java Tip in forum SWT TipsReplies: 0Last Post: 07-07-2008, 05:43 PM -
How to display information about the display device in SWT
By Java Tip in forum SWT TipsReplies: 0Last Post: 06-28-2008, 10:26 PM -
AWT can we make a Tabbed container?
By Panchitopro in forum AWT / SwingReplies: 0Last Post: 05-15-2008, 11:31 PM -
convert a lot of images into a single one
By leonard in forum New To JavaReplies: 1Last Post: 08-06-2007, 05:47 PM
Bookmarks