horizont
asked on
Java Applet corection
I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
It dont work, and I dont know why(there are some readme in mentioned website, but, nevertheless I can no find answers on some questions).
I got error: 'Error occured during read of properties C:\windows\Desktop\myDatab ase\...\mp 3.properti es"
Its unclear, what extension should be mp3.properties file -in original dbview applet have PROPERTIES File extension .PRO(which is unknown for my Windows) My properties file has just the text extension, I dont know how get .pro extension.
Then,what should be correct properties file?(full set of values, short?)
I set the following:
LOCALE : US
DATA_FILE_NAME : mp3.txt
DATA_FILE_DELIMITER : SEMICOLON
DATA_FILE_ROW_COUNT : 6748
Column_1 : name=Artist
Column_2 : name=Album
Column_3 : name=Year
Column_4 : name=Size__mb; type=NUMBER
Column_5 : name=Mode
Column_6 : name=Kbps
Column_7 : name=Location
Column_8 : name=Time; type=NUMBER
Column_9 : name=Track; type=NUMBER
Column_10 : name=Style
-------------------------- ---------- ---------- -------
Or full?
LOCALE : US
DATA_FILE_NAME : mp3.txt
DATA_FILE_DELIMITER : SEMICOLON
DATA_FILE_ROW_COUNT : 6748
Column_1 : name=Artist
Column_2 : name=Album
Column_3 : name=Year
Column_4 : name=Size__mb; type=NUMBER
Column_5 : name=Mode
Column_6 : name=Kbps
Column_7 : name=Location
Column_8 : name=Time; type=NUMBER
Column_9 : name=Track; type=NUMBER
Column_10 : name=Style
TITLE : mp3 View
ABOUT : Alex Corp
LAYOUT_NAVIGATION_BUTTONS : YES
LAYOUT_SEARCH_BUTTONS : YES
LAYOUT_ABOUT_BUTTON : YES
TOOLTIP_SHOW_TOOLTIP : YES
TOOLTIP_MOVE_TO_FIRST_ROW : Move to first row
TOOLTIP_MOVE_TO_NEXT_ROW : Move to next row
TOOLTIP_MOVE_TO_PREVIOUS_R OW : Move to previous row
TOOLTIP_MOVE_TO_LAST_ROW : Move to last row
TOOLTIP_SEARCH_FOR_KEYWORD S : Search for keywords
TOOLTIP_SHOW_BY_CATEGORY : Show by category
TOOLTIP_SHOW_ALL_ROWS : Show all rows
TOOLTIP_ABOUT_DATABASE_APP LET : About dbView Applet
ALIAS_ALL_ITEMS : All items
-----------------------
Is there meaning the order of records?
Perpaps, if I do not specify the some value, there will be set default values?(what?)
Its unclear also what's role of type=NUMBER attribute, what this change for user?
Thanks
It dont work, and I dont know why(there are some readme in mentioned website, but, nevertheless I can no find answers on some questions).
I got error: 'Error occured during read of properties C:\windows\Desktop\myDatab
Its unclear, what extension should be mp3.properties file -in original dbview applet have PROPERTIES File extension .PRO(which is unknown for my Windows) My properties file has just the text extension, I dont know how get .pro extension.
Then,what should be correct properties file?(full set of values, short?)
I set the following:
LOCALE : US
DATA_FILE_NAME : mp3.txt
DATA_FILE_DELIMITER : SEMICOLON
DATA_FILE_ROW_COUNT : 6748
Column_1 : name=Artist
Column_2 : name=Album
Column_3 : name=Year
Column_4 : name=Size__mb; type=NUMBER
Column_5 : name=Mode
Column_6 : name=Kbps
Column_7 : name=Location
Column_8 : name=Time; type=NUMBER
Column_9 : name=Track; type=NUMBER
Column_10 : name=Style
--------------------------
Or full?
LOCALE : US
DATA_FILE_NAME : mp3.txt
DATA_FILE_DELIMITER : SEMICOLON
DATA_FILE_ROW_COUNT : 6748
Column_1 : name=Artist
Column_2 : name=Album
Column_3 : name=Year
Column_4 : name=Size__mb; type=NUMBER
Column_5 : name=Mode
Column_6 : name=Kbps
Column_7 : name=Location
Column_8 : name=Time; type=NUMBER
Column_9 : name=Track; type=NUMBER
Column_10 : name=Style
TITLE : mp3 View
ABOUT : Alex Corp
LAYOUT_NAVIGATION_BUTTONS : YES
LAYOUT_SEARCH_BUTTONS : YES
LAYOUT_ABOUT_BUTTON : YES
TOOLTIP_SHOW_TOOLTIP : YES
TOOLTIP_MOVE_TO_FIRST_ROW : Move to first row
TOOLTIP_MOVE_TO_NEXT_ROW : Move to next row
TOOLTIP_MOVE_TO_PREVIOUS_R
TOOLTIP_MOVE_TO_LAST_ROW : Move to last row
TOOLTIP_SEARCH_FOR_KEYWORD
TOOLTIP_SHOW_BY_CATEGORY : Show by category
TOOLTIP_SHOW_ALL_ROWS : Show all rows
TOOLTIP_ABOUT_DATABASE_APP
ALIAS_ALL_ITEMS : All items
-----------------------
Is there meaning the order of records?
Perpaps, if I do not specify the some value, there will be set default values?(what?)
Its unclear also what's role of type=NUMBER attribute, what this change for user?
Thanks
Typo
>>props.load(getClass().ge tResourceA sStream("/ x.pro");
should be
props.load(getClass().getR esourceAsS tream("/x. pro"));
>>props.load(getClass().ge
should be
props.load(getClass().getR
ASKER
Not clear, sorry.. What I should modify in a properties file?
It's not necessarily what's in there that's the problem. Show me how you are loading the properties file
ASKER
I tried 2 ways (both specified in description),
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
dbview will appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "dbView.class"
archive = "dbview.jar"
name = "dbView"
width = "700"
height = "400"
hspace = "0"
vspace = "0"
align = "top"
>
<param name="properties" value="mp3.properties">
</applet>
</body>
or, a little differs:
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<applet code= "dbView.class" archive= "dbView.jar" height="400" width="700" name="dbView">
<param name="properties" value="mp3.properties">
</applet>
</body>
</html>
</html>
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
dbview will appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "dbView.class"
archive = "dbview.jar"
name = "dbView"
width = "700"
height = "400"
hspace = "0"
vspace = "0"
align = "top"
>
<param name="properties" value="mp3.properties">
</applet>
</body>
or, a little differs:
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<applet code= "dbView.class" archive= "dbView.jar" height="400" width="700" name="dbView">
<param name="properties" value="mp3.properties">
</applet>
</body>
</html>
</html>
No, i'm talking about the applet code that reads the properties, not the html
ASKER
Look at http://www.alphatel.com/dbview.htm -all files are there and are taken therefrom(no source available)
>>I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
This suggests to me that you wrote an applet yourself, like this one - is that not the case?
This suggests to me that you wrote an applet yourself, like this one - is that not the case?
ASKER
Thats no matter, i have asked HOW TO ADJUST THIS APPLET that it work. If you have no any ideas, just say: "I have no any idea about this".
ASKER
Thanks for great help from Expert.
> If you have no any ideas, just say: "I have no any idea about this".
i think he has a little trouble saying that :)
i think he has a little trouble saying that :)
where is your propreties file installed?
it should be on the web server (are u running this from a web server?)
it should be on the web server (are u running this from a web server?)
it should be in a config directory under your jar.
ASKER
I thought, that my question is simple enough, but now I see, that I have hurried..
What I ask is: I have configured Applet (see specified link) according to my needs. There is no source, as you can see.
I try applet on my local PC, not on webserver.
There is stipulated to configure only 3 files:
1. text data file.
2. html document that includes applet tag.
3. properties file -(dbview.properties)
Plus make folder structure as described.
Required files for running the dbview applet:
dbview.jar
/config/dbview.properties
/data/data.txt
/images/*.jpg (optional)
# The names data.txt and dbview.properties are all configurable
My files:
dbview.jar
/config/mp3.properties.txt
/data/mp3.txt
mp3.html
Applet should run, but it does not work.
What I ask is: I have configured Applet (see specified link) according to my needs. There is no source, as you can see.
I try applet on my local PC, not on webserver.
There is stipulated to configure only 3 files:
1. text data file.
2. html document that includes applet tag.
3. properties file -(dbview.properties)
Plus make folder structure as described.
Required files for running the dbview applet:
dbview.jar
/config/dbview.properties
/data/data.txt
/images/*.jpg (optional)
# The names data.txt and dbview.properties are all configurable
My files:
dbview.jar
/config/mp3.properties.txt
/data/mp3.txt
mp3.html
Applet should run, but it does not work.
ASKER
I have found a mistake myself: I used a .txt file as properties file, instead of editing properties directly in .properties file which had correct extension. OK.
There was one small problem still: the the data(names) in last column(Style) are interpreted
incorrectly and after last word there are shown small squares.
I have checked database file and found, if some cells in last column is empty, then applet fills a cell with squares; if cells contain a word, squares are added to the end of a word.
How ho to fix this?
There was one small problem still: the the data(names) in last column(Style) are interpreted
incorrectly and after last word there are shown small squares.
I have checked database file and found, if some cells in last column is empty, then applet fills a cell with squares; if cells contain a word, squares are added to the end of a word.
How ho to fix this?
>>Thats no matter, i have asked HOW TO ADJUST THIS APPLET that it work
No you didn't. Maybe English is not your first language, but i can assure you the following
>>I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
means 'i have written an applet'. If you need help configuring an applet that *somebody else* has written then say so.
No you didn't. Maybe English is not your first language, but i can assure you the following
>>I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
means 'i have written an applet'. If you need help configuring an applet that *somebody else* has written then say so.
> means 'i have written an applet'.
no you have implied that. created could mean many thing, such as created an instance of.
If you are unclear on things a far better approach would be to ask questions instead of making assumptions about the requirements and a solution.
You'll save everyones time that way.
no you have implied that. created could mean many thing, such as created an instance of.
If you are unclear on things a far better approach would be to ask questions instead of making assumptions about the requirements and a solution.
You'll save everyones time that way.
>>If you are unclear on things a far better approach would be to ask questions
What - you mean like this one
>>This suggests to me that you wrote an applet yourself, like this one - is that not the case?
>>created could mean many thing, such as created an instance of.
No it couldn't. Quite apart from the that 'the sort of' also means 'not this one'
>>I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
What - you mean like this one
>>This suggests to me that you wrote an applet yourself, like this one - is that not the case?
>>created could mean many thing, such as created an instance of.
No it couldn't. Quite apart from the that 'the sort of' also means 'not this one'
>>I have created Java Applet, the sort of http://www.alphatel.com/dbview.htm
if something like *developed* had been used then you might be able to think they wrote the applet.
But really the url in the question made it pretty obvious they hadn't written the applet.
horizont,
Ask CS for a refund of your points :)
But really the url in the question made it pretty obvious they hadn't written the applet.
horizont,
Ask CS for a refund of your points :)
>>if something like *developed* had been used then you might be able to think they wrote the applet.
Yes
>>But really the url in the question made it pretty obvious they hadn't written the applet.
It doesn't when it's prefaced with 'the sort of'. To me that means 'i have written an applet that's like this one at...'
Yes
>>But really the url in the question made it pretty obvious they hadn't written the applet.
It doesn't when it's prefaced with 'the sort of'. To me that means 'i have written an applet that's like this one at...'
I for one don't support a points refund. If the question is reframed properly, now we've established someone else created the applet and it's publicly available, i'll try to help.
then horizont should get a refund on this question and open a new one with wording that you can understand.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Properties props = new Properties();
props.load(getClass().getR
The file extension is immaterial