View Single Post
Old 12-03-2012, 04:07 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,653
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Nope, you can't really view the source of Java code. The bytecode may be somewhat legible though, but its not the same as the source.
To create Java from HTML you would need to write a parser to effectively go through the html source and build the necessary components you want to display as java components. So you would check for an input type of text, and give it a JTextField for example. Layout will be much harder as you'll need to write a CSS parser for it, then give it explicit layout settings for each component. Won't be pretty for things that are inherited like block levels in HTML since Java doesn't understand what that is so it'll just keep stacking components on top of components.
Fou-Lu is offline   Reply With Quote