maja neskovic

Ranch Hand
+ Follow
since Apr 28, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by maja neskovic

I have solved the problem like you said, Rob.

Thank you both a lot

Greetings!
9 years ago
Hello!

I wanted like to read xml file and I did it like this:



But I have problem with path to my xml file. I would like to put it on my localhost in this line

so the path would be http://localhost/book.xml. I put that path in applet, but it doesn't work. I reports error, because it searches for file on this path: C:\Documents and Settings\maja.neskovic\My Documents\Princip rada steka\Stek\http:\localhost\book.xml. I am not sure where it finds this path and I hope somebody can help me to fix this path problem.
9 years ago
Here is the code:


It works this way, I think I made it.

Greetings!
9 years ago
On my JApplet I have one JTextArea. I also have variable counter. I would like to display different text on JTextArea for different values of variable counter.

For example, if counter is 5, to display "You are on 5th assignment".

I have written code for that, but my JAplet does not repaint. How to set that?
9 years ago
I have tried to use JTextArea and set options like you said. It works very nice. I have set JTextArea disabled and it looks like panel now since there is no blinking cursor.

Thank you very much again

Greetings!
9 years ago
Rob: It looks like very good idea, but I do not know how to make some of things mentioned. For example, how to cut off the right-most word from s?

Michael: It sounds easier, I'll try to make it and report for results.

Thank you both very much.
9 years ago
I have made JApplet and JPanel on it.

In JPanel I have written some text. I have to write it like one string and to define some logic for line break. When text comes to the width of panel, I should make line break and pass next word that can not fit in line to the new line.

I would be very grateful for some help.
9 years ago
I have made table and implemented controlling logic in applet. It seems OK.

Thank you for advices.

Greetings!
9 years ago
I have got directions to do. Is there any way to create session that will follow specific user? That would help me.
9 years ago
Yes, it sounds like easier solution. But I have many applets that will be put on school's learning system for testing and there will be many tables at the database. Programmers at the school are not satisfied with this solution. That is why I have to do something else.

If it is helpful, I have signed applet in NetBeans by activating Web start.
9 years ago
Hello! I have made one applet looking like questioner. When user answers on first question and presses Submit button, he clicks on Next button and answers on second question. I have put counter in Next button coding (if (counter==1){//show first question} else if...) to control question showing. There are 4 questions and answers are recorded as one row in database (each question has it's column, table is updated when user clicks on Submit).

I need to control user activity and not to allow him to does more than one recording to database per testing and to disable him to restart applet when he clicks on refresh page option.

Can anybody explain me how to control session or any similar solution?

I have posted here, but I didn't got the solution.

I hope somebody can help.
9 years ago
I have folder named classes (project made in NetBeans) and in it folders impl and images (folders of packages). Folder impl has class files and images. I would like to place images in folder (package) images and to call it from there.
9 years ago
I did that call: "images/info.png", but it does not work...?
9 years ago