Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 7 Now Supports HTML Version 3.2?

 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • 0
  • 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?
 
m Korbel
Ranch Hand
Posts: 174
  • 0
  • 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,
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • 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: 689
Eclipse IDE Firefox Browser Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both for your replies.

I'm looking into JavaFX now.
 
Rob Spoor
Sheriff
Pie
Posts: 20368
43
Chrome Eclipse IDE Java Windows
  • 0
  • 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: 689
Eclipse IDE Firefox Browser Mac OS X
  • 0
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic