0

I have a java web JSP application, which I need to translate to a java desktop application, which I can distribute in a jar file.

I'm new to netbeans, and I'm trying to figure out if there's a way to use html tables, instead of the JTable provided by netbeans.

The thing is that there's a lot of code in my jsp's that create these html tables, and I was wondering if I can re-use it with netbeans.

It has to be a desktop application, it shouldn't run on a web-browser.

I understand that you can't use html in a java desktop app, but if at least I could use just html tables, that would be a huge time saver for me.

I've been searching for the right answer for a couple of days, and still haven't found a concrete answer. Plus, when you say "table", Google thinks you're talking about a database table, which is not my case.

Any help will be really appreciated

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Sergio
  • 658
  • 1
  • 9
  • 22
  • 2
    [`JEditorPane`](https://docs.oracle.com/javase/tutorial/uiswing/components/editorpane.html) can render HTML 3.2 with some extensions, for [example](https://stackoverflow.com/q/18443315/230513). – trashgod Jun 16 '17 at 03:42
  • 2
    *"when you say "table", google thinks you're talking about a database table"* Add **-**ThingYouDoNotWant e.g. https://www.google.com/search?q=html+table+-db – Andrew Thompson Jun 16 '17 at 05:33
  • 1
    I have never tried a table, but you can [render some html in Swing components.](https://docs.oracle.com/javase/tutorial/uiswing/components/html.html) – Amber Jun 16 '17 at 21:30
  • Thanks a lot!! both answers seems to be very helpful. I'll take a look to both of them see which one suits my needs better. I forgot to mention that I also need radio buttons, check boxes, text boxes and other html elements inside the html table. I hope they can render style-sheets as well – Sergio Jun 16 '17 at 23:51
  • and yes, I used that "-" modifier, but still, I was getting a lot of database related results. Thanks for the tip anyway. – Sergio Jun 16 '17 at 23:55

0 Answers0