• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

in Runtime enviroment online help can't display

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Let me tell you a story about a man named Jed. He made this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic