Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Window Builder
Window Builder [message #1083837] Sat, 10 August 2013 15:37 Go to next message
Praveen Dharmaraj is currently offline Praveen DharmarajFriend
Messages: 7
Registered: August 2013
Junior Member
Hello,
I have installed Eclipse kepler in my computer. I dont think I can find the "window builder pro" software for this version of Eclipse. Can somebody help? Is there an alternative?



Thanks,
Praveen Dharmaraj
Re: Window Builder [message #1084238 is a reply to message #1083837] Sun, 11 August 2013 06:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31848
Registered: July 2009
Senior Member
Parveen,

You tried Help -> Install New Software, selected the Kepler repo and
looked for it there?

On 10/08/2013 5:37 PM, Praveen Dharmaraj wrote:
> Hello,
> I have installed Eclipse kepler in my computer. I dont think I
> can find the "window builder pro" software for this version of
> Eclipse. Can somebody help? Is there an alternative?
>
>
>
> Thanks,
> Praveen Dharmaraj


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Window Builder [message #1085042 is a reply to message #1083837] Mon, 12 August 2013 11:24 Go to previous message
Dmitri Husti is currently offline Dmitri HustiFriend
Messages: 4
Registered: August 2013
Junior Member
Hi,
here you find a description howto install windowbuilder.
Cool http://download.eclipse.org/windowbuilder/WB/release/R201306261200/4.3/

PS.:if you are using Eclipse SDK 4.2 and you want to make parts
I recommand you to use this code as a sceleton

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.inject.Inject;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

public class myfirstpart {
	private Text text;
	@Inject
	public myfirstpart(Composite parent){
		Composite composite = new Composite(parent,SWT.NONE);
		composite.setLayout(new RowLayout(SWT.HORIZONTAL));
		text = new Text(composite,SWT.BORDER);
		Button datumButton = new Button(composite,SWT.NONE);
		datumButton.setText("Datum");
		datumButton.addSelectionListener(new SelectionAdapter(){
			@Override
			public void widgetSelected(SelectionEvent e){
				text.setText(new SimpleDateFormat("dd.MM.yyyy").format(new Date()));
			}
			
		});
		Button zeitButton = new Button(composite,SWT.PUSH);
		zeitButton.setText("Zeit");
		
		Button btnPrepareYourself = new Button(composite, SWT.NONE);
		btnPrepareYourself.setText("prepare yourself");
		zeitButton.addSelectionListener(new SelectionAdapter(){
			public void widgetSelected(SelectionEvent e){
				text.setText(new SimpleDateFormat("HH.mm.ss").format(new Date()));	
			}
		});
	}
	public static void main(String[] args){
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setLayout(new FillLayout());
		new myfirstpart(shell);
		shell.open();
		while (!shell.isDisposed()){
			if(! display.readAndDispatch()){
				display.sleep();
			}
		}
		
	}
}
Previous Topic:Realize Objects.hashCode() and Objects.equals(...) implementation of Java 7 within eclipse
Next Topic:how to stop on breakpoints
Goto Forum:
  


Current Time: Fri Apr 23 06:21:05 GMT 2021

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

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

Back to the top