HTML into java code
I was wondering if you could take source code from a website shown in HTML and convert it into java code. Is there any way to see the source code in java code instead of HTML?
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.
|All times are GMT +1. The time now is 02:12 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.