Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

in Runtime enviroment online help can't display

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
I'm prepare to upload. But when i test the program on Java Runtime, i found that the online help can't display. But when i test it on development version, it is no problem.
In the introduction.html, sun said"Your submission must run under a production (not development) version of Sun's Java 2 Platform."
I think the production version is the runtime enviroment. Am i right? what do you think?
The below source code is how to display the online documet:
URL helpURL=new URL(documentationURL);
JEditorPane editorPane = new JEditorPane();
editorPane.setContentType("text/html");
editorPane.setPage( helpURL );
editorPane.setEditable(false);
editorPane.addHyperlinkListener( this );

JScrollPane helpScrollPane = new JScrollPane(editorPane);

Container contentPane = menuMain.getContentPane();
contentPane.removeAll();
contentPane.add( helpScrollPane );
menuMain.show();
Any comments please! thanks!
stephen
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops? can anybody help? It's urgent. I wait this message to upload my assignment.
thanks
stephen
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try debugging, or analyzing any generated exceptions.
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi John,
I debugged it but it didn't throw any exceptions.
I'm really confused.
I have no idead about whether i upload it?
any suggestion?
stephen
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I think the production version is the runtime enviroment.


Just now i look up the forum carefully. I found that i maybe make a mistake. I mess the production version. The production version should be a product release of sun. Actually j2sdk-1_3_1_02-win is a production version. It includes the Runtime enviroment.
So now i use j2sdk-1_3_1_02-win and the above problem was gone.
Am i right?
Hope it's helpful to anyone else who has the same question.
stephen
 
    Bookmark Topic Watch Topic
  • New Topic