Jude Fawly

Ranch Hand
+ Follow
since Dec 01, 2004
Merit badge: grant badges
For More
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 Jude Fawly

Thanks so much, Michael.
16 years ago
Hi there,

When I use the decorated JFrame, the color of the JFrame is always light blue.
Is it possible to change this colour? For example, I want the decorated JFrame to be in pink colour.

Thanks.
16 years ago
Hi there,

I have a panel that includes a label. I've added a mouse listener on the label. This is how it is working now: when I click on the label, I reset the background color of the panel:

panel.setBackground(Color.PINK);

and then set it to another color:

panel.setBackground(new Color(30,100,10,40));

The problem is with the alpha component I am using with the color; now whenever I click on the label, the color of the panel is becoming darker and darker (the transparency of the color is reducing). Notice that the code panel.setBackground(Color.PINK) is working and i am sure of it.
I hope I made my point clear.

Waiting for any help.
Thanks.
16 years ago
Thanks alot.
17 years ago
I'll try that.

Thanks.
17 years ago
Hi there,

I wrote an applet program; my class extends JApplet. But what troubled me is that double buffering does not work when extending JApplet. I didn't know that extending JApplet is the reason. Two days later I changed my class to extend Applet class instead of JApplet. Here the same double buffering code (update and then paint; the known method) works fine without flickering.
I just want to know, if possible, the reason for that. I am not very good with the underlying reasons of programming issues.

Thanks.
17 years ago
Hi there,

I am using jdk 1.6 and jre 1.6. Here when I use objects from collection, for example Vector class, I get warning at compile time saying that my Java file uses unchecked or unsafe operations.
The program is running, but I want to know the reason of this warning message if possible; it is out of curiousity.

Thanks.
17 years ago
Hi Ernest,

I went with one of the options you provided which is to change the path in the environment variables to take java.exe from the java bin directory as the first option. It is working now.

Thanks.
17 years ago
Hi there,

I wrote a program and it compiles correctly from command line with (javac), but when I use (java) to run the application, I get the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: art (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)


----
Can somebody help?
Thanks.
17 years ago
hi there,

how can i disable the navigation button and the home directory buttons on a JFileChooser? I want my jfilechooser to search only in the directory i specified only without allowing the user to go on level higher in the folders tree, or to go to the parent directry, or be able to choose another directory from the combobox?
is it possible? how can i do that?

thanks.
18 years ago
hi Jeff,

thanks for your reply. i am trying have a GUI frame, for example a login screen, that has a nice image on the background, but on the same time this GUI would have textfields and buttons on them.
It is possible?

thanks.
18 years ago
hi,

how can i use a JPanel in a way to be able to draw on it in the first place and then add components to it?

thanks.
18 years ago
hi,

how can i limit the jfilechooser to search only in a specific folder nothing more?

thanks.
18 years ago
hi,

i am using an image label. images with sizes 200x200 will fit in the label and the whole
display is neat. but when i load an image with width 300 pix for example, the whole display
gets messed up.
How can i be able to load any image size in the image label while keeping the display neat.
if this is not possible, how can i limit the JFileChooser to choose images with 200X200 pixels?

thanks for any help
18 years ago
hi,

how can i copy a file from the location i found it on the pc using the JFileChooser into another location?

i will appreciate any help.
18 years ago