Hey Scott,

I know what you mean by lack of controls, but that’s what HTML wasn’t for. You 
can create whatever you want by your own. If you don’t want that, you can 
search for Control libs, that do the Job for you. And they are some out there. 
If you use Angular, you have angular material for example. Or jQuery UI or 
Bootstrap with brings you some data tables. Sure you have to create such 
Feature by your own, but JTable is what? A Control from Swing, right? It is a 
GUI Toolkit, so it brings you UI components, that you have to create by your 
own, so what is wrong with using a community driven, famous UI Framework in 
HTML that does the Job for you?

Often you talk about hacks, sure there are hacks for HTML for polyfills for 
different Browsers, but the codepen is not a hack, it is how the Job is done. 
And scss so pure CSS, no JS.


Cheers

Chris

Von: Scott Palmer
Gesendet: Montag, 19. März 2018 20:57
An: dev@netbeans.incubator.apache.org
Betreff: Re: Usability study was: Think Java, not Electron! was: 
ApacheHTML/Java UI


> On Mar 19, 2018, at 1:13 PM, Neil C Smith <neilcsm...@apache.org> wrote:
> 
> On Mon, 19 Mar 2018 at 16:40 Scott Palmer <swpal...@gmail.com> wrote:
> 
>> Toni,  (replying off-list as this really isn’t about NetBeans)
>> ...
>> Can you point me to one of those third party components that can do what
>> JTable or TableView already does?
>> 
> 
> As didn't quite manage off-list ;-)  

Yes…  I caught that the second after pressing send ;-).  Figured I already 
spammed the list once, so I wouldn’t send an “oops” msg too.  I’m replying to 
the list this time, but I don’t want to take this thread off in another 
direction.

Thanks to you and Toni.  There may be something I can use listed at 
https://jspreadsheets.com/ <https://jspreadsheets.com/>
I do have a web app that needs this.

> 
> This seems to achieve what you wanted to do in CSS?
> https://codepen.io/tjvantoll/pen/JEKIu 
> <https://codepen.io/tjvantoll/pen/JEKIu>

Found when I first went searching.  Not impressed at all. The column widths are 
hard-coded, there is no synchronization between the header and the data column 
sizes at all.  No column show/hide, reordering, resizing, etc.
This was in fact one of the examples that lead me to conclude that HTML UIs can 
be very ugly hacks.

I think the very existence of https://jspreadsheets.com/ 
<https://jspreadsheets.com/> makes the point though.  Basic controls are 
lacking in stock HTML UIs.  HTML/5 is still the wild west in terms of making an 
application UI.

Using these Javascript widgets and/or writing controls from scratch can 
certainly get you somewhere, but it demonstrates that HTML/5 is missing even 
basic widgets needed to be a good full-featured UI framework for applications.  
Compare what you have to go through to even make use of any of the libraries at 
https://jspreadsheets.com/ <https://jspreadsheets.com/> (and it’s a one-off for 
a single widget!) and you can see how much farther ahead Swing with Matisse or 
JavaFX with SceneBuilder are.  I still don’t see the appeal to use HTML for 
desktop apps.  It’s more work for less if you aren’t going to re-use it for the 
web as well.

Regards,

Scott

Reply via email to