• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing applications on Windows tablets using Java

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been asked to develop an application for a Windows 7 tablet. The preferred language was Java. The tablet will not have an internet or network connections at all times, so the application has to behave like a standalone application most of the time.

Since it has to be a standalone app using Java, I was thinking about a Swing based application. But that would be hard to maintain as nobody does Swing here anymore. If I put in a servlet container on the tablet like tomcat, I could do traditional JSP, but is that an overkill?

I have been reading/googling/posting messages to see if I am on the right path and some people suggested I give up on Java and instead just use HTML/JavaScript/CSS. The advantage would be the application would be fast and light weight - and I like that idea.

My question is, is using Java an overkill for such an app? or could I still use Java and keep it light weight? Thanks for any feedback.
 
Sheriff
Posts: 22791
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephen Tret wrote:Since it has to be a standalone app using Java, I was thinking about a Swing based application. But that would be hard to maintain as nobody does Swing here anymore.


You're kidding, right? Even here on the Ranch there are multiple questions per day about Swing; 90% of the questions in our user interface forum are about Swing.
 
Stephen Tret
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops, what I meant was in our shop here.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephen Tret wrote:I have been reading/googling/posting messages to see if I am on the right path and some people suggested I give up on Java and instead just use HTML/JavaScript/CSS. The advantage would be the application would be fast and light weight - and I like that idea.


If you go the html/js/css route, you will need a server. That would mean, your end user would need to ensure the server is running before the application can be accessed. If it's not, the server needs to be started. Are your end user's capable of this? Do you think this approach would provide a good user experience?

 
Rob Spoor
Sheriff
Posts: 22791
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need a web server for static HTML, JavaScript and CSS - you can run these from your local file system as well. PHP, ASP, JSP etc - those you need a web server / servlet container for.
 
Marshal
Posts: 28271
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To me I wouldn't call a collection of static HTML pages an "application". Although with the addition of Javascript it could be made into one, I suppose. But before investigating whether a Windows tablet could run such an application, it would be a good idea to find whether the actual business requirements of this application could be supported by Javascript.

(For example if the application required persistent data, that would be a strike against Javascript.)
 
Stephen Tret
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your responses. Sorry for the late response. I had to do my home work when Maneesh mentioned I had to have a web server for HTML/JS/CSS.

As far as application requirements go, the application isn't very big. There's a some input data that needs to be stored on the tablet. Then the tablet goes out on it's own into no wi-fi land. The application has a bunch of radio buttons (yes/no type), very few checkboxes and a couple of text fields. At the most, the application has less than 10 pages of small HTML forms. The end user fills these forms and I guess I can use JavaScript to write out a (JSON) file on the local file system on the tablet.

When the tablet gets back into Wi-Fi range, I can copy this data back to the server. Does this design have any gaping holes?

If I put a web or servlet container on the tablet itself, I am afraid I am going to kill it!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic