Posted by C_Rdd on 05:41:00 10-15-2003
Doe ssuch a thing exist. I basically want it to take a HTML File and spit it out in the properly layed out way. It needs to be part of the JSDK.
Posted by cowsarenotevil on 06:26:00 10-15-2003
What, may I ask, is the point? Why does it need to be in Java? And if it does for some reason, you could always write your own HTML renderer...
Posted by Neu[Mann] on 08:12:00 10-15-2003
cows: You know C_Rdd. He is knowledgeable and he took the time to write his post in the 'Other languages' forum. He probably knows what he want when he writes that he wants to use Java.
What I said above is a common mistake amongst helpers on IRC or on forums.
Plus...
Writing an satisfying HTML renderer is a tedious task in any language. Writing a good looking one is a complex task. I think most people would prefer to avoid that unless they are coding a web browser.
There are libraries for that in Java. Probably many. What I don't really understand is the need for it to be in the J2SDK.
Posted by Neu[Mann] on 08:20:00 10-15-2003
C_Rdd:
After a quick check on Google and Java2 Swing API, it seems like it should be as simple as this:
URL url = ... // url of html doc.
JEditorPane ep = new JEditorPane();
try {
ep.setPage(url);
}
catch (Exception e) {}
JEditorPane supports plain text, html and rtf natively.
[addsig]
Posted by cowsarenotevil on 08:22:00 10-15-2003
Quote:
On 2003-10-15 08:12, Neu[Mann] wrote:
cows: You know C_Rdd. He is knowledgeable and he took the time to write his post in the 'Other languages' forum. He probably knows what he want when he writes that he wants to use Java.
There's always the chance that he doesn't know about alternatives, however.
Posted by Neu[Mann] on 08:50:00 10-15-2003
You should assume that he knows the alternatives until he proves the contrary. Otherwise, althought it's more common on IRC, discussion will slip away from the subject he wanted help with.
And, quite frankly, I don't believe any alternatives would be as simple as using JEditPane!
[ This Message was edited by: cowsarenotevil on 2003-10-15 09:46 ]
Posted by dxprog on 11:26:00 10-15-2003
Quote:
On 2003-10-15 08:50, Neu[Mann] wrote:
And, quite frankly, I don't believe any alternatives would be as simple as using JEditPane!
Opena standard project in VB
Right-click the controls panel
Select "Microsoft Internet Controls"
Make your browser Windows as big as you want it
Beat that Neu[Mann] (Note that this is only a silly post, no need for anyone to get firey )
_________________
May the Force (of programming) be with you.
[ This Message was edited by: dxprog on 2003-10-15 11:26 ]
Posted by Neu[Mann] on 11:51:00 10-15-2003
but... uuuh... well... eh... VB SUX!
Posted by dxprog on 01:35:00 10-16-2003
At a loss for words, eh?
[addsig]
Posted by Neu[Mann] on 01:45:00 10-16-2003
Your defence of VB was predictable. I'm kinda cheating because I know for a fact that C_Rdd wants to use Java.
Putting Microsoft IDEs aside, I don't think there is anything out there simpler and as versatile as Java.
Posted by dxprog on 02:17:00 10-16-2003
I wasn't defending VB, I was just being myself. That is pretty simple though. I bet .NET is about the same (after all, it's almost identicle to Java).
[addsig]
Posted by C_Rdd on 02:43:00 10-16-2003
OK.
It is for a school project.
I already had a Visual Basic model working.
I am more familiar with Java, and prefer it, so obviously I would prefer to use Java.
I am also aware that a task like this is relatively simple in C++.
"What, may I ask, is the point? Why does it need to be in Java? And if it does for some reason, you could always write your own HTML renderer..." - This is for a real-life piece of software that needs to be completed in a few weeks. It is not for hobby/pleasurable purposes. Also, a renderer is a horrifically difficult thing to build. And it needs to be part of the JSDK because I don't have time to be worrying about software liscences.
"There's always the chance that he doesn't know about alternatives, however." - How bloody (a stronger expletive could and should have been used here) dare you. I've been around here a hell of a lot longer than you. If that is all you know about your users, you certainly shouldn't be an admin. An admin has the responsibility to know about his users, not just satisfy himself.
"Doe ssuch a thing exist. I basically want it to take a HTML File and spit it out in the properly layed out way. It needs to be part of the JSDK." - Does that sound like a specific question to you? It sure as hell does to me. Does it sound like I have a specific task in mind? Yes it does. Does it sound like I want to debate what labguage I am going to use? No. It sounds to me like a question asked by someone who wants to know does a specific Java object exist, created for a specific purpose, with a specific use in mind.
*****
URL url = ... // url of html doc.
JEditorPane ep = new JEditorPane();
try {
ep.setPage(url);
}
catch (Exception e) {}
JEditorPane supports plain text, html and rtf natively.
*****
Thank you very much. That is exactly what I needed. (I didn't think one existed, and actually was spending my googling time searching for some things I never knew about VB, since it was never appealing to me to use)
[ This Message was edited by: C_Rdd on 2003-10-16 02:59 ]
Posted by cowsarenotevil on 04:55:00 10-16-2003
Quote:
On 2003-10-16 02:17, dxprog wrote:
I wasn't defending VB, I was just being myself. That is pretty simple though. I bet .NET is about the same (after all, it's almost identicle to Java).
Huh? VB .NET almost identical to Java? What? o_O
Posted by Neu[Mann] on 05:01:00 10-16-2003
VB.NET = VB syntax with C# semantics.
C# is similar to Java, thus VB.NET/C#/Java shares some similarities.
Posted by cowsarenotevil on 05:02:00 10-16-2003
Quote:"What, may I ask, is the point? Why does it need to be in Java? And if it does for some reason, you could always write your own HTML renderer..." - This is for a real-life piece of software that needs to be completed in a few weeks. It is not for hobby/pleasurable purposes. Also, a renderer is a horrifically difficult thing to build. And it needs to be part of the JSDK because I don't have time to be worrying about software liscences.
"There's always the chance that he doesn't know about alternatives, however." - How bloody (a stronger expletive could and should have been used here) dare you. I've been around here a hell of a lot longer than you. If that is all you know about your users, you certainly shouldn't be an admin. An admin has the responsibility to know about his users, not just satisfy himself.
Actually, I've recommended that you become an admin several times. All of the others wouldn't allow it because of your attitude. Now, I'm afraid, the vote is unanimous. So, if I'm supposed to bottomume that you know everything I can just delete this post because you already know how to do it? And maybe some background information would be useful, maybe so we could know what you were actually talking about. You first say it's a "school project" (cough*homework*cough) and also that it's a "real life" application. So, which is it? And if it's a commercial program, I recommend that you read the main page more closely. And, for the fourth time now, if you want to discuss me being an admin, private message me.
Posted by cowsarenotevil on 05:04:00 10-16-2003
Quote:
On 2003-10-16 05:01, Neu[Mann] wrote:
VB.NET = VB syntax with C# semantics.
C# is similar to Java, thus VB.NET/C#/Java shares some similarities.
I've used both, and I've found Java to be closer to C than VB .NET. VB .NET is almost identical to VB 6 except that it uses the .NET framework.
Posted by Neu[Mann] on 05:14:00 10-16-2003
That's just syntax. It doesn't really matter.
Semantically, C is very different from Java. VB.NET and C# have basically the same semantics and Java is close enough.
[addsig]
Posted by C_Rdd on 05:24:00 10-16-2003
Actually, I've recommended that you become an admin several times. All of the others wouldn't allow it because of your attitude. Now, I'm afraid, the vote is unanimous. So, if I'm supposed to bottomume that you know everything I can just delete this post because you already know how to do it? And maybe some background information would be useful, maybe so we could know what you were actually talking about. You first say it's a "school project" (cough*homework*cough) and also that it's a "real life" application. So, which is it? And if it's a commercial program, I recommend that you read the main page more closely. And, for the fourth time now, if you want to discuss me being an admin, private message me.
If it was (cough*homework*cough) I would be content to use VB. And for the record, our computer class is just about touching on what a proceedure is in Pascal.
"attitude" ? - Please explain? My attitude? As far as I was aware no other admins had a problem with me.
"We stress that we are for non-proprietary, free-software and open source programming!" - Hmm "for". That to me sounds like you support that you *support* open source programming, not that you demand that all programmers dedicate themselves to such ideals. Of course I feel there is a place for it. But there is also a much larger place for commercial software, which provides the finance for the research and development and investment necessary to bring technology to the place it is.
"The entire grown-up world seems to be based on money. We're not cool with that. We like to code free software, open source and non-proprietary software." - I am perfectly content with the fact that people work for money. After all there has to be someway to exchange your skills and goods with other peoples skills and goods.
Anyway, looking at the main page itself, there is nothing there about anarchist/socialist/non-capitalist values.
And anyway, the program is to bottomist (/me sighs at this stupid censorship) in revision for exams, in effect a set of documents, nicely packaged. What I am writing, anyone else could write the software engine for in a matter of minutes. And many other people will be contributing that to it, I am just the one who volunteered to write the viewing engine.
And it is part of a business experience class, you run your own business for a year. Thus it has little to do with computers. IT IS VOLUNTARY.
"Doe ssuch a thing exist. I basically want it to take a HTML File and spit it out in the properly layed out way. It needs to be part of the JSDK." - What background information is needed to anwer that? I really don't think any is.
Finally, I answered a question, you ignored it, Neumann answered it, I thanked him. Maybe it was a little to presumptuous of me to think that that was the end of this topic.
[ This Message was edited by: C_Rdd on 2003-10-16 05:27 ]
Posted by dxprog on 05:32:00 10-16-2003
Okay, the question is answered. I don't think this needs to go any further.
[addsig]