473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Java applet question!

This is probably a really easy fix for anyone with any Java experience. Since I have none I am here asking for your help. I have downloaded a Java menu from the web to use on a page I am creating for a friend. I have the menu working fine but the problem I want to fix is that I have to hard code the parameters for the links into each page. Is there a way to put all the link information into one external file that is called by each page so I can make menu edits in just the one location? The menu I downloaded is called NetMenu and can be found here.
http://javaboutique.internet.com/NetMenu/
Any help you can provide would be greatly appreciated.
Oct 25 '07 #1
9 1372
r035198x
13,262 8TB
This is probably a really easy fix for anyone with any Java experience. Since I have none I am here asking for your help. I have downloaded a Java menu from the web to use on a page I am creating for a friend. I have the menu working fine but the problem I want to fix is that I have to hard code the parameters for the links into each page. Is there a way to put all the link information into one external file that is called by each page so I can make menu edits in just the one location? The menu I downloaded is called NetMenu and can be found here.
http://javaboutique.internet.com/NetMenu/
Any help you can provide would be greatly appreciated.
1.) Don't use a title like "I need your help". Every one who posts here needs help.
2.) What is a Java menu? What kind of pages are you talking about? JSP pages
3.) Are you sure you don't need Javascript help instead of Java help?
Oct 25 '07 #2
1.) Don't use a title like "I need your help". Every one who posts here needs help.
2.) What is a Java menu? What kind of pages are you talking about? JSP pages
3.) Are you sure you don't need Javascript help instead of Java help?
1.) Sorry about that!
2.) Java applet vertical pulldown menu, complete with mouseovers and sound effects for an HTML page.
3.) I am not sure what kind of help I need, I just know I need help.

Thanks!
Oct 25 '07 #3
r035198x
13,262 8TB
1.) Sorry about that!
2.) Java applet vertical pulldown menu, complete with mouseovers and sound effects for an HTML page.
3.) I am not sure what kind of help I need, I just know I need help.

Thanks!
4.) Are you allowed to change the code for the menus?
5.) Do you know where in the code the values are hardcoded?
Oct 25 '07 #4
4.) Are you allowed to change the code for the menus?
5.) Do you know where in the code the values are hardcoded?
4.) & 5.) Yes the code is fully customizable and I have made several changes during testing.
Oct 25 '07 #5
r035198x
13,262 8TB
4.) & 5.) Yes the code is fully customizable and I have made several changes during testing.
Why don't you post the hard coded part then?
Oct 26 '07 #6
Why don't you post the hard coded part then?
Expand|Select|Wrap|Line Numbers
  1. <applet code="NetMenu.class" 
  2.     align="baseline" 
  3.     archive="NetMenu.jar" 
  4.     width="230" 
  5.     height="150">
  6. <param name="bgColor" value="000000">
  7. <param name="topLevelColor" value="005A94">
  8. <param name="secondLevelColor" value="85798C">
  9. <param name="strColor" value="FFFFFF">
  10. <param name="strHiColor" value="F0C070">
  11. <param name="itemHeight" value="20">
  12. <param name="font" value="Times New Roman">
  13. <param name="menu0" 
  14.   value="JavaBoutique|*|Home,Applets,Resources,|u0,u1,u2">
  15. <param name="u0" value="mainW|http://javaboutique.com/">
  16. <param name="u1" value="mainW|http://javaboutique.com/applet_index/">
  17. <param name="u2" value="mainW|http://javaboutique.com/resources/">
  18. <param name="menu1" 
  19.   value="Applet Categories|*|,Text Effects,Navigation,Audio Effects|u4,u5,u6,u7">
  20. <param name="u4" value="mainW|http://javaboutique.com/cathome.html">
  21. <param name="u5" value="mainW|http://javaboutique.com/text/">
  22. <param name="u6" value="mainW|http://javaboutique.com/navigation/">
  23. <param name="u7" value="mainW|http://javaboutique.com/audio/">
  24. <param name="menu2" value="Java Resources|*|News,Tutorials|u8,u9">
  25. <param name="u8" value="mainW|http://javaboutique.com/news/">
  26. <param name="u9" value="mainW|http://javaboutique.internet.com/tutorials/">
  27. </applet>
  28.  
This is a sample of the code that I am putting into each html page. As you can see, params "u0" - "u9" are the links. I want to have those located in an external file so menu edits are centralized.

Thanks!
Oct 26 '07 #7
r035198x
13,262 8TB
Since those are simply the applet parameters, you can go into the code for the applet and change the code so that it doesn't use those parameters but reads the values from a text file instead. You can google "read text file using applets" to find out all the settings you need to have for the file reading part to work.
Oct 26 '07 #8
Since those are simply the applet parameters, you can go into the code for the applet and change the code so that it doesn't use those parameters but reads the values from a text file instead. You can google "read text file using applets" to find out all the settings you need to have for the file reading part to work.
Thanks, I will give that a try and report back here with teh results. I appreciate all the help.
Oct 26 '07 #9
Since those are simply the applet parameters, you can go into the code for the applet and change the code so that it doesn't use those parameters but reads the values from a text file instead. You can google "read text file using applets" to find out all the settings you need to have for the file reading part to work.
I did a search and did quite a bit of reading. Didn't understand most of it and fear that this solution is not going to help me out. I went through the .class file and can't figure out any way to modify it to get my desired results. Like I said in my original post, I have no Java experience so most of this looks foreign to me. I was hoping it would be as easy as putting the applet code into a .js file and just calling that from the html pages, but I guess that is my inexperience talking. I would be willing to try any other ideas anyone may have. Thanks again.
Oct 26 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have:...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
3
by: Steve W | last post by:
I've searched over and over again and have not been able to find a definitive answer. Basically, we have a heavily JavaScripted web site. What I was hoping to do was to start enhancing our site...
3
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did...
4
by: google | last post by:
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
by: aotemp | last post by:
Does anyone know how to detect the version of Java installed? My website has an application that requires java 1.5+ to be installed, basically if the user doesn;t already have it installed I...
0
by: brickled | last post by:
hello all, I am new to java and java applets. i'm trying to "interact" with a java applet on a website. After loading the webpage that contains the applet into a browser object (in visual...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.