aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Java 7 Now Supports HTML Version 3.2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java 7 Now Supports HTML Version 3.2?" Watch "Java 7 Now Supports HTML Version 3.2?" New topic
Author

Java 7 Now Supports HTML Version 3.2?

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

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

Joined: Jun 19, 2012
Posts: 156
- 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

Joined: May 03, 2008
Posts: 4658
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Thank you both for your replies.

I'm looking into JavaFX now.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19755
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 7 Now Supports HTML Version 3.2?