Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » CUSTOM COMPONENT
CUSTOM COMPONENT [message #758437] Wed, 23 November 2011 04:53 Go to next message
Alexandra is currently offline Alexandra
Messages: 1
Registered: November 2011
Junior Member
Hi people,
I am new in programming. I have to make a custom component of jtree with some funcionalities and put it in palette(make an independent and reusable component).Could somebody explain me wich project to chose cos I tried to compile code below in java project but it didnt work,just explain me how to compile properly this code).. I am sooo sorry for asking probablly stpuid question but if u could help me it would be salvation for me...


package com.sqsdqs.client;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;

public class mybutton extends Composite{
Button vermeg = new Button("VERMEG");
public mybutton(){
VerticalPanel panel = new VerticalPanel();


panel.add(vermeg);
initWidget(panel);
}




public void setButton(){
Window.alert("jjjjj");
vermeg.setText("bhjbhj");
}

Re: CUSTOM COMPONENT [message #758524 is a reply to message #758437] Wed, 23 November 2011 10:10 Go to previous message
Eric Clayberg is currently offline Eric Clayberg
Messages: 847
Registered: July 2009
Location: Boston, MA
Senior Member
Looks like you are trying to do something with GWT rather than pure Java.
Previous Topic:Disable tool tips in the properties window
Next Topic:XServer oddity
Goto Forum:
  


Current Time: Fri Jul 25 21:20:38 EDT 2014

Powered by FUDForum. Page generated in 0.02230 seconds