Issues that I am having in Vaadin.

My name is Shyamali De Silva & I am a Sri Lankan. Currently I am working in an IT solutions providing company. While i was learning Vaadin the
below mentioned issues were found. Can you please be kind enough to reply me regarding this matter.

  1. After attaching the css file, the color of the button was default as the Runo theme but the background of the button was
    the color that i mentioned in css. (I have attached a screen shot of Problem_1).

  2. I am using Eclipse as the IDE. The other problem that i am having is in the application that i am using to type the code mostly
    underline the errors that i have done. But in some programs such things are not displaying and when i run it on the server it
    display in “Blank”. The code is below mentioned.

    public class MoonphaseApplication extends Application {
    

    @Override
    public void init() {
    Window mainWindow = new Window(“MyApplication”);
    Panel loginPanel = new Panel(“Login”);
    loginPanel.setWidth(“250px”);
    LoginForm login = new LoginForm();
    loginPanel.addComponent(login);
    setMainWindow(mainWindow);
    }

}
11838.png

You might want to try the
Chameleon theme.

You didn’t add the panel to the window, so that’s why the window is blank. To catch such bugs in future, you might want to consider installing the
FindBugs plug-in for Eclipse
.

Thanks a lot for your help. I was able to sort out the problem that i had & finally the styles were applied properly. After that i tried to add a color to a window using the same way that i did earlier but it didn’t work. The code is,

public void init() {
	Window mainWindow = new Window("Project3 Application");
	Label label = new Label("Hello Vaadin user");
	mainWindow.addComponent(label);
	setMainWindow(mainWindow);
	// Create a sub-window
	Window subWindow = new Window("Sub-window");
			        
	// Create a sub-window and add it to the main window
	Window sub = new Window("Life beneath the waves");
	sub.addStyleName("v-window-yellowsub");
	mainWindow.addWindow(sub);
	sub.center();[img]

http://
[/img]

I have attached a screen shot of the window that i have designed.
11863.png