Alternatives to Java applets [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm planning to write a simple program that displays course prerequisites for students at my university in graph form (ie as a network of vertices and edges). I'd like to embed the program in a webpage to save people the hassle of downloading an executable.
Currently I'm looking at making my program a Java applet (Java also would give me access to the handy Swing library), but I don't like the fact that applets can't be viewed on most mobile devices.
What alternatives to applets exist for a project like this? I'd like to make it compatible with as many devices as possible, and also not have to build the graphics stuff from scratch.
One final consideration is I'm doing this mostly as a learning exercise. Ideally the tools I'd be working with would be helpful to know in the future.

Please don't use applets. They have been sufficiently deprecated.
The best way to do this is by using html/js/css. A lot of useful libraries exist that can help you with this task. jQuery seems obvious, but there's also d3.js or vis.js for displaying visual representations of data, and bootstrap for responsiveness (mobile friendliness).

You may use Angularjs with angular-chart for Showing graph in Web Browser.
If your graph data is dynamic you might use Nodejs and mongoDB for backend.
angular-chart is responsive and its easy to show dynamic graph. But as it uses HTML5 canvas some mobile browsers might not show its transitions smoothly depending on the device.
I personally do not prefer using applet in web browser when the same functionality can be achieved using great frameworks like Angularjs.

why dont you try to build your project through Servlet framework
by the way cgi were removed by servlet because of the handling of the request
applet uses the same concept

Related

Best tool to use to "convert" Android apk into runnable web app(let)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I recently wrote a very simple apk app for a client - that runs nicely on their Android devices. They have since asked for it to be a runnable in web browser app (preferably phone and desktop). What would the best idea for this be?
As it's already in Java- perhaps a web applet? Are there any considerations here?
Or is there anything else that I can use? I've also heard to stay away from emulating the app within a web browser as it can be slow...
Sorry for asking a "unorthodox" question, but I know that SO people normally have a few suggestions that can put me on the right path...
What would the best idea for this be?
Tell the client to go pound sand.
Or, rewrite the entire app in a hybrid app framework, such as Apache Cordova/PhoneGap, so your mobile and Web implementations are similar.
Or, rework your Android app to be a (small) pure-Java JAR of business logic, wrapped in an Android app. Then, implement a server-side Java Web app (e.g., WAR) that leverages that same JAR.
perhaps a web applet?
Not all browsers support those, including roughly 0% of mobile browsers.

Tools for Building a Web Application in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to build a web application for a data management system. I have a year's experience in Java, basic knowledge of SQL, and very little knowledge of anything else.
I have done a lot of reading online and there seems to be endless different ways you can go about building a web app. My question is what is the easiest way for somebody with my sort of experience, and what else do I need to learn. I have been using Eclipse IDE however have now downloaded Netbeans as I am unsure which IDE would be best either.
I am currently reading up on Servlet's, JSP's and HTML and am just trying to understand what I need to learn and use to get started really as I need to have the web app ready in 8 weeks!
I have also read about GlassFish, Ajax, TomCat, Apache etc. but do not really understand how they fit in or which to use.
you can try some of the following approaches:
Download Apache Tomcat. Try to start it up. See if you can understand anything from its sample applications.
For Java webapp, the minimum technologies you need to know are: Servlets, JSP. If you need database access you also need to know about JDBC.
Try to google for CRUD applications (i.e. Create, Read, Update, Delete applications) that use only Servlets and JSP.

Swing-Library for Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know that Android uses Java but not a fully compatible runtime library. Creating UIs in Android is done completely different than for normal Desktop Java. Nevertheless that's a really stupid thing in my opinion, very much Java applications out there have to be rewritten for Android (instead of modified only slightly).
So my question: is there some kind of (3rd party) Swing-library available for Android? Means a Java-package that contains Swing-compatible classes so that an existing Swing-Application has to be modified only slightly? It of course can't be 100% compatible but modifying some things that do not exist on Android is much less work than rewriting the whole GUI-part...
There is no way you can use swing in android, because android is not based on JavaSE, while swing is. android uses a special java that is designed to run on DVM .
Even if their is no compatibility issue. Swing is used for desktop apps which differ in their UI completely from mobile apps.
So given the above points unfortunately you will have to rewrite the UI again for your software. but on the bright side, android's UI is very simple and fun to work with.
give it sometime and good luck!
Edit:
Comparison between Java SE and Android's Java
CodeNameOne?
Supposed to be very similar to Swing.
Also, in my experience, GWT is somewhat similar to Swing.
Either of these will require a rewrite from Swing though.
There is no Swing on Android. You can always develop a JME application and run it via emulation, but that's as close as it gets. Unfortunately, in technology, things change all the time, so for programmers, it's a case of "adapt or die."
Unfortunately, as far as I know, Java Swing Desktop Apps can't run on Android (Dalvik VM), but the good news is: JavaFX as a successor to Swing GUI technology has already been ported to mobile and embedded platform (e.g. Android). If you're interested in this, go http://gluonhq.com/products/mobile/javafxports/ for details.

Chosing a right framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am planning to develop a web application using GWT, but before that I need to make few clarifications. The web app what I am developing should be compatible with Mobile phone browsers considerable smart phone browsers.
I googled a lot to know this but I did not find supporting or sufficient documentations.
If GWT doesnt support what would be the other framework, which is open source java based framework?
There is no big problem with mobile websites build using GWT, it generates standard javascript + html. There is some libraries that can help you build mobile site, like http://code.google.com/p/gwt-mobile-webkit/. And you can write any widget you wish.
But keep in mind that GWT will generate very heavy target files, sometimes few megabytes long. So if you target audience uses GPRS for accessing your site, it could be problematic for them.
There is also other web-framework, that are GWT based: http://vaadin.com/home.
It have great collection of UI components, and currently authors are extending it to be more mobile friendly.
You could also try a different route with Context Framework. I think it suites better to mobile web developing because it is more lightweight solution. I have made a journey planner (in Finnish) with it and it was tailored especially to touch screen phones. You can find it here.

Design of Reporting Services for Java webapp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
A design question.
I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm.
One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part of the core because of various constraints, not necessarily technical. Reporting services as needed now should enable users to get their reports online anytime as well as download them in predefined formats.
The application has grown into a stage where I would not like to put in more code into it and want to isolate the core modules and develop future needs around this core.
I would like to hear a few ideas as to how to go on developing this reporting service around the core app.
Also what reporting tools can I use? I have used Jasper in the past but heard BIRT is good too. Throw your suggestions.
While Jasper is a pretty good choice if you have fairly advanced requirements such as:
Supporting esoteric formats
Parent-child reports
Charts and graphs
But if you really only need to show tabular reports in popular formats such as HTML/PDF/XLS, then you can go a long way with just diplaytag, with a lot less effort than Jasper requires.
A simple tabular report takes about 20 lines of JSP code using displaytag, but the same report requires about 500 lines of XML using Jasper. I'd investigate whether displaytag can meet your requirements before committing to a 'heavyweight reporting solution such as BIRT/Jasper.
I would recommend Jasper because I've used it in the past and found it quite easy to configure and use. It is possible to integrate it into your application without too much trouble.
I have only heard good things about BIRT but never implemented it myself.
I would recommend art: http://art.sourceforge.net/. We are using this tool without any problems. It is still active project so if you add new feature you can add request for it.

Categories