Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java application accessible on smart devices(To port or not to port the existing application)
Java application accessible on smart devices [message #1863729] Fri, 23 February 2024 15:36 Go to next message
R R is currently offline R RFriend
Messages: 4
Registered: February 2024
Junior Member
I recently decided to return to Java programming after many years using other languages. I wrote some modules and a couple of applications which will be part of a larger application.

Working with Eclipse is great and I want to expand the application using this development platform.

The application is now ready for the next phase which is to create the UI which will primarily run in Linux, but it also needs to run in windows. No big deal.. The tricky part is that it should also be accessible over a smart device (Tablet). This is where I am stuck. It is acceptable to access the application via a web browser in Linux and windows.

Is it better to create the GUI using SWT/Swing ( jPanel & jFrames ) and then use a tool to convert the code to be accessible via containers like Tomcat or Jetty?

Or does Eclipse offer tools that I am not aware of to accomplish this in another way?

Thanks!

-R-
Re: Java application accessible on smart devices [message #1863731 is a reply to message #1863729] Fri, 23 February 2024 15:49 Go to previous messageGo to next message
R R is currently offline R RFriend
Messages: 4
Registered: February 2024
Junior Member
I forgot to mention that the Java application is not part of a website. It is an internal application. The requirement to be accessible over a Tablet is what brought up this topic. I simply want to try and write a single program that satisfies both requirements (desktop & tablet). The application communicates with a PostgreSQL database and allows the user to access various data and make new entries. There is a web component to it as jSoup is used to obtain data from the internet. The database and web scraping functions exist and are functional. What is missing is the interface.
Re: Java application accessible on smart devices [message #1863735 is a reply to message #1863731] Fri, 23 February 2024 18:26 Go to previous messageGo to next message
Erik BrangsFriend
Messages: 55
Registered: February 2010
Member
I don't know of any Eclipse-specific tools to generate a web UI from Swing.

You will probably get more useful answers if you rephrase this as a general question (i.e. without Eclipse) and ask on StackOverflow.

That said, I think you have at least the following options:
- search for a framework that allows you to easily provide both a desktop UI and a web UI
- build two separate UIs
- build a web UI and use that on both tablets and desktops

The right choice depends on your requirements.

Using only a web UI could be a good fit if the application is simple. I'm mostly doing backend development so I can't give you any good hints on UI frameworks. I have mostly used Spring MVC and JSF and found both to be servicable (each in their different way). There is also Jakarta MVC which has a similar approach to Spring MVC but depends only on Jakarta specifications (and a template engine).

Having two separate UIs could be a good fit if your users do different things on the tablets than on the desktops. You need a suitable architecture to support it (e.g. clean architecture).
Re: Java application accessible on smart devices [message #1863739 is a reply to message #1863735] Fri, 23 February 2024 19:28 Go to previous message
R R is currently offline R RFriend
Messages: 4
Registered: February 2024
Junior Member
Thanks Erik,

Your reply confirms what I anticipated. I will also check on StackOverFlow..

-R-

[Updated on: Fri, 23 February 2024 19:28]

Report message to a moderator

Previous Topic:Any insights?
Next Topic:Reset Java Version - Switch from 1.8 to 21
Goto Forum:
  


Current Time: Sat Jan 25 10:33:30 GMT 2025

Powered by FUDForum. Page generated in 0.03282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top