Kasun Liyanage

Greenhorn
+ Follow
since Mar 09, 2011
Kasun likes ...
Java Netbeans IDE Ubuntu
Sri Lanka
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
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Kasun Liyanage

Hi

Have Oracle posted any Official statement about the existence of Drag n' drop questions in OCJP 6? Are DND's removed, definitely? i'm planning to sit for the exam in Jan/2012.

Thanks.
That cleared it. Appreciate the help. Thanks!!
6 years ago
Thanks a lot guys. Gonna checkout more about classes with static methods. Appreciate it.

-Kasun
6 years ago
Thanks it helped. But when i apply 7d, 9 characters are printed:

"> (123)< "
123456789


Why was that?
6 years ago
Hi!



i cannot understand how they have put Arrays.toString() like that, without first creating an Arrays object. Are java.util' classes are always used that way? Please explain.

Thanks a lot.
6 years ago
Hi



This produces: > (123)<

i can't figureout how the space between > and ( is happened and the meaning of '7' in the format string.
Please explain.
Thanks.
6 years ago
So, is it difficult/impossible too to write a program such as a wallpaper changer for windows/linux with java?
6 years ago
Thanks mates for the replies. Thought java was the god of coding langs Seems like i need to go back to C++ for certain things
6 years ago
Hi

i need to create an app that iterate through each of currently running processes on the computer. i need to get a handle to each process, handle to each process's window--if it has one--and to read it's caption. i have created this type of thing with C++ but i don't have a clue of doing it with Java. How should i do this, what Java classes libs i should use for doing these system processes specific stuff.
I'll greatly appreciate ANY help.
Thanks!
6 years ago
Thanks.

If i'm not using getResource(), what other ways are there to load an image (directly from harddisk/the net) to an already existing JLabel?



Appreciate if anyone could post some codes showing that.
6 years ago
Hi!

Ok, i have a JLabel on my app window, and i wanna load an image that resides on my harddisk or on the net into this already existing JLabel. i tried to do it like this from inside the main method by it gives me an error.


(jLabel1 label exists inside the NewJFrame frame)



How to fix this?
Thanks!
6 years ago
Thanks for the replies! i set the jar as an executable in Ubuntu and used Executer to convert jar file in to an exe in Windows. And it works, thanks.
6 years ago
Ok thanks, Rob. I'll try that out.
6 years ago
Hi!

Is it possible to make a Java executable file from a Netbeans project? i mean, a file which i can double click and run.

Thanks.
6 years ago
Hi!

Is there any way to perform a audio pause function with Javazoom's Player class?

Thanks.
6 years ago