Member Avatar

HI guys, as my next application I thought I'd build a simple converter, something that allows me to convert from, say, Km to miles and so on. The framework I will use is vaadin (unfortunately) but it will still be java anyway :-). So, I just thought I'd see if anybody has some good suggestions really. This is how I think I could go about it. The UI class will obviously hold the GUI stuff, so no need to talk about it. I will have another class, converter.java which will have a list of options as radio button selection, something …

Member Avatar
+0 forum 47
Member Avatar

Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: -Division by 0: ArithmeticException; -Users typing a string rather than a number: InputMismatchException Here is the class that creates the form and deals with the exceptions (I'm not including the UI class as it's not needed): package my.vaadin.project.exceptionTest; import java.awt.Component; import java.util.InputMismatchException; import com.vaadin.server.Page; import com.vaadin.shared.Position; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; …

Member Avatar
+0 forum 3
Member Avatar

I'd like to start from the basics if I may please. I've read a few tutorial here and there and I've just created a test application with probably the simplest RPC calls you can possibly have (basically I want to use the RPC call to call a method to print a string). I'm using Eclipse and I've created a maven project, loosely based on this tutorial and the following ones but things are not working very well (forgive me but I'm new to vaadin and still learning java). This is the structure of my project, including packages (the structure is …

+0 forum 0
Member Avatar

HI guys, I run into a problem. I have a input of type file and I'd like to grab the file name of the uploaded file and assign it to a variable, but I don't seem to be able to do that. I'm hiding hte input with opacity 0 and hiding it behind a span which is styled to look like a button, common techinque as we all know, that shouldn't have any inpact on what I'm doing whatsoever. Anyway, here is the script (it's part of a Spring application by the way), here is the fll code: JavaScript.getCurrent().execute("" +"var …

Member Avatar
+0 forum 1
Member Avatar

Hello, I am trying to add a scrollbar to my code with no luck to do so, could anybody help in this, thx in advance. Below is my code. @import "../chameleon/styles.css"; /** * "optional-" prefix means that the style is not necessarily used, it can be left blank * "generated-" prefix means that the style is calculated from some other color, and not directly selected by the editor user * **/ /* Application background */ .v-app { background: rgb(249,249,249); } .v-window, .v-popupview-popup, .v-filterselect-suggestpopup, .v-datefield-popup, .v-contextmenu, .v-Notification, .v-menubar-submenu { background-color: rgb(249,249,249); background-color: rgba(249,249,249,.85); } body.v-ie6 .v-window, body.v-ie7 .v-window, body.v-ie6 .v-popupview-popup, body.v-ie7 …

+0 forum 0

The End.