Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

erdem ozdemir

Greenhorn
+ Follow
since Aug 09, 2005
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 erdem ozdemir


here is go part in extended label.
If i remove that if/else part in MouseClicked function, I can see animation which is actually a flash of colors.

Thanks in advance.
Thanks for advices.

My aim was to connect db and applet which are on the same server.

thanks for interest java freaks
hi all o/

I am not much experienced in threads, I have a problem in threads.


Here, I have a label which is like a button. When I call e.go(), I actually start a timer object in my extended label to start an animation in it. Here is the code that starts animation.



My problem here is that, it performs part in belowe before showing me animation. I think when I call sleep of thread in label object, it comes back to codes in panel and continues there. Then it completes animation but I can't see animation because panel of main screen has already changed.
am I right?



I could not find any solution to this so far. Any help will be appreciated in advance.

Sincerely

[ September 28, 2006: Message edited by: erdem ozdemir ]
[ September 28, 2006: Message edited by: erdem ozdemir ]
Hi. I am trying to connect my applet to a mysql server in my computer. But I have a problem.

Let me expand my problem:

here is my simple java code:


I executed this file in a different directory from www(localhost)so I used a java policy file including text below.


The output I get is:
Driver loaded.
Error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)
java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)
at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at DbConnectorForNet.ConnectDB(DbConnectorForNet.java:52)
at DbConnectorForNet.main(DbConnectorForNet.java:67)

Then I tested my mysql server with a php script, it works. After that I checked mysql config for skip-networking and i edited it like this:
; skip-networking

I am really in stack and I have no more idea why it does not work. I appreciate any useful idea, thanks in advance.

cheers

[ July 13, 2006: Message edited by: erdem ozdemir ]
If ids in your list elements are in order, you can use binary search algorithm to find the
employee.

Here is an algorithm of how you can do this:

http://en.wikipedia.org/wiki/Binary_search


But insertion and deletion of employees are not much efficient in this case.

Btw, if insertions and deletions are used many times, you can use a heap (data structure), but implementing heap with arraylist might be hard.

I hope, these information is useful for you.
[ June 16, 2006: Message edited by: erdem ozdemir ]
14 years ago
Hi again,

To clear the problem, I know that because of security reasons, it is not easy to make such an upload just using server side, but there will be client program in client's computer.

I am now reading classes about httpclient, If I understand right from what I read will work for me.

If I need help again, I will ask a further question about the subject.


Thanks for your comments and ideas


my best compliments.
[ May 18, 2006: Message edited by: erdem ozdemir ]
14 years ago
Hi,

I am working on a program that needs to upload an image file to a server on the web.
Actually, what I want is to auto upload of the file to a server without using html forms, I mean without interaction with user.

I am really stacked against this problem.

If you can help, I really appreciate it.

my best compliments.
14 years ago
Thanks, very much for your replies...
I will not use it anywhere but one of my friend had asked me it and I wonder there is a special class for it..
thanks
15 years ago
Hi,
I am wondering that can I execute codes in a varible...
I mean that if I get some string from a jtextarea and this string was
something meaningful for java, ( Ex: System.out.println("erdem") can java evaluate this String (Without my if statements) ?

I heard about Runtime class and find a solution of creating a java source file and putting this string inside of it then by Runtime class compiling and running, but this solution does not interest me too much..

Any answers will be appreciated, thank you..
15 years ago


This part is for opening IE, for choosing which URL that was selected you should use getSelectedValue() (if you are using a JList..)

[ August 16, 2005: Message edited by: erdem ozdemir ]
[ August 16, 2005: Message edited by: erdem ozdemir ]
15 years ago
Thanks a lot Felipe, , the mistake is at me, I could not do what you said... And thank you, Joe for showing me the mistake at my code that I posted..
Now, the problem is solved...
15 years ago
hımmm, first I tried


This part creates an internal frame 'createInternalFrames' method includes part of obtaining the image, then I realized that I have to call sleep method of thread so it can give chance of processing to other tasks and I changed my code as below..





I thought that with the help of timer, it should stop some time the thread, but it does not help me too... Where did I do wrong, or could it be do in some other way ?
15 years ago
Thank you very much,
I learned one more thing I did not know...

great..
15 years ago
hi,

In my program, I want to show some pictures on the internet.

I am creating an URL object and making the adress of object to url of the picture then when I was using it to show pictures in my program I realized that, it takes too much time to obtain the picture and prevents my program responsing user's desires, clicks.

What I want is that, program should not be locked, and it should continue running properly simultaneously with downloading my picture, when it completes download of picture, it should show it..

Answers will be appreciated..
Thank you.
15 years ago



When I run this code, I saw that the bottom of the program's color is gray, although I made the color of labels filling bottom of program white.

I think, in a similar manner, when mouse is over one of labels, It should be shown in a cyan color, it was still gray. How could I solve this problem?

Answers will be appreciated..
Thank you.
15 years ago