• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Java 7 Now Supports HTML Version 3.2?

 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently upgraded to Java 7 and I thought that I'd take a look at the JavaDoc for the HTMLEditorKit to see what version of HTML is supported using Java 7.

The Java 6 API only supported HTML version 3.2 which I though sounded very backward. Now, I've just read that the Java 7 API now supports HTML version 3.2 still and is "working on migrating to HTML 4.0".

Java 7 JavaDoc for the HTMLEditorKit:
http://docs.oracle.com/javase/7/docs/api/javax/swing/text/html/HTMLEditorKit.html

Is Oracle kidding me? What is going on? It seems like the work is starting to standardize on HTML5. So, we have support for 3.2?
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- there isn't changes betweens Java6/7 for JTextComponents and javax.swing.Text, only a few new bugs in Java7 with word a line wrap

- only added Generics and SecondaryLoop to Swing (important changes),

- very funny, interesting is that depreciated (long timed from Java1.3/4) methods still arent't removed

- there weren't any development, everything about Html4/5 and CSS is in JavaFX2.X (diff core)

- maybe in Java8 will be implemented some (maybe most of) features from original Java7,
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing has been declared to be in maintenance mode, so it's unrealistic to expect any major improvements. As m Korbel has suggested, JavaFX WebView / WebEngine probably have better HTML support.
 
Kaydell Leavitt
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both for your replies.

I'm looking into JavaFX now.
 
Sheriff
Posts: 22053
113
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

m Korbel wrote:- very funny, interesting is that depreciated (long timed from Java1.3/4) methods still arent't removed


Nor will they be removed. Sun never removed any deprecated methods / classes because it could break old code. Oracle have adopted that way of thinking.
 
Kaydell Leavitt
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Spoor wrote:

m Korbel wrote:- very funny, interesting is that depreciated (long timed from Java1.3/4) methods still arent't removed


Nor will they be removed. Sun never removed any deprecated methods / classes because it could break old code. Oracle have adopted that way of thinking.



As much as I hate to see cluttered code and documentation that is caused by leaving deprecated methods in the API, I believe that it's probably for the best.

I mentor computer science students using Python, and there are so many incompatibilities between Python 2 and Python 3 it's ridiculous. Python 3 is supposed to be an improvement (which it is) but it just causes so much confusion because the developers of Python made so many incompatibilities between Python 2 and Python3.
reply
    Bookmark Topic Watch Topic
  • New Topic