Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Advice on which framework to use

 
Greenhorn
Posts: 11
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, this is my 1st post so if I am doing something wrong, apologies.

I am starting a project this month that is to be a scrum board webapp (think a whiteboard with movable sticky notes)
I would like this project to be done in java, and it should have a decent UI. (something like trello, maybe not quite as fancy)
Basically the UI would include draggable sticky notes that snap into columns.

I have looked into solutions, hoping to find something like swing for the web
and all I have found GWT which seems to be nigh-on-dead and doesn't have the ability to create a nice responsive UI.

My question is can anyone recommend me a java framework to accomplish what I need?

Thanks very much,

Jamie.
 
Saloon Keeper
Posts: 12259
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch, Jamie!

From your post I gather that it needs to be a web-application. If you want drag and drop in a web-application, by far the easiest route is to learn JavaScript. You can still write the backend in Java, using an MVC framework such as Spring.
 
Marshal
Posts: 15885
265
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jamie Flynn wrote:
I have looked into solutions, hoping to find something like swing for the web
...
My question is can anyone recommend me a java framework to accomplish what I need?


If it's for a web-based UI, your best bet would be a JavaScript framework like JQuery UI or AngularJS.
 
Jamie Flynn
Greenhorn
Posts: 11
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, thanks for the quick replies!

You both mentioned javascript, however the likes of Google Wb Toolkit is supposed to generate this for you. Do you know of any other frameworks that do this?
If not and I went down the spring MVC route, how would one even draw a shape (sticky note) on the screen, and how would that shape interface with the javascript?

Thanks
 
Stephan van Hulst
Saloon Keeper
Posts: 12259
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but in my opinion frameworks like GWT are godforsaken monstrosities that makes your task harder rather than easier.

If you want to draw simple shapes, you can embed <svg> elements in the HTML that your application outputs. You can also just use images for your sticky notes.

With JavaScript, you can fairly easily rearrange elements in your HTML DOM, and I'm sure there are some good libraries that will help you to make drag n drop easy and nice to look at.
 
Junilu Lacar
Marshal
Posts: 15885
265
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jamie Flynn wrote:
I would like this project to be done in java, and it should have a decent UI. (something like trello, maybe not quite as fancy)
Basically the UI would include draggable sticky notes that snap into columns.


This just goes to show how there are some incredibly skilled programmers out there. Simulating drag-and-drop sticky notes that snap into columns is no small feat. There's a lot of programming and design that goes on underneath to make that look easy from the user's point of view. In all brutal honesty though, the fact that you're even asking what framework you can use to do this kind of thing leads me to think that you're probably walking into waters that are far deeper than you can actually stay afloat in.

If you search for sticky notes in javascript, you should find a few basic examples. Getting those UI elements in Javascript to "talk" to backend Java object models is whole 'nother thing.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jamie Flynn wrote:
You both mentioned javascript, however the likes of Google Wb Toolkit is supposed to generate this for you. Do you know of any other frameworks that do this?


Not advised. Transpiling frameworks like GWT can "get you by" if all you know is Java, but you're not going to have the control you need and you get... well, not the best of class, let's just leave it at that.

To me, the best analogy is building something out of Legos. You sort of get something that's close, but ...

If not and I went down the spring MVC route, how would one even draw a shape (sticky note) on the screen, and how would that shape interface with the javascript?


Web applications are built on the triad of HTML, CSS and JavaScript. HTML provides the structure, CSS the appearance, and JavaScript the behavior.
 
Jamie Flynn
Greenhorn
Posts: 11
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Yes, but in my opinion frameworks like GWT are godforsaken monstrosities that makes your task harder rather than easier.

If you want to draw simple shapes, you can embed <svg> elements in the HTML that your application outputs. You can also just use images for your sticky notes.

With JavaScript, you can fairly easily rearrange elements in your HTML DOM, and I'm sure there are some good libraries that will help you to make drag n drop easy and nice to look at.



Thanks for the advice, I will give it a shot!
One final question - I have had a google and came across bootstrap - how easy would it be to implement these designs in java?
Thanks
 
Bear Bibeault
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bootstrap is a CSS and JavaScript framework. Not anything to do with Java.
 
Junilu Lacar
Marshal
Posts: 15885
265
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this scrumboard webapp that you want to build something that you're going to eventually sell to customers or something you just want to use internally? If it's not something you're going to sell to others, then perhaps it would be more pragmatic to buy something that's already exists rather than try to build your own from scratch.
 
Do you want ants? Because that's how you get ants. And a tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic