CUSTOM COMPONENT [message #758437] |
Wed, 23 November 2011 09:53 |
|
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");
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03737 seconds