Benjamin Mulder

Greenhorn
+ Follow
since Mar 13, 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 Benjamin Mulder

let me explain...

on classA I have:


I want to pass "hello world" to class B's jTextArea.

So I put on the button method.



but nothing happens on class B. jTextAreaClassB doesn't display "hello world" from jTextAreaClassA.

Thanks in advance

Ben
19 years ago
Is it possible? All the stuff I've found about sound are related to applets.

But I don't want an applet. My application executes from console. How do I do that? Feel free to offer any sample code. Thanks in advance.

19 years ago
Background: : I have two frame/classes. A login screen and a "display results" screen. A login screen has a login button which takes you to display results screen.
Display eesults screen as a logout button however...

Problem: when you click on the logout button, it generates two instances of the login screen. In other words, two login screens appear one on top of the other on the left hand corner NOT in the center like the first time the program launches.

Behavior I want: once I click logout on "display results" screen, I go right away to the login screen. Exactly the way it previously was: centered and with only one instance running not two as it is right now.

This is on the login screen.


this is on the results screen



thanks in advance....
19 years ago
This timer triggers a progress bar. The goal is to stop the timer (and therefore the progress bar) when a label changes its text.

However, the timer goes on for ages and the progress bar keeps going until it reaches 100%. The timer never stops, it just that the progress bar can't go any further.

In other words,

1. How do you stop the timer below?

2. How do you make this timer below to listen to other events such as threads terminated or label text change?


Feel free to tweak around the code below so I can see what you mean. I learn by example. ;*)

Thanks in advance,

19 years ago
I want to execute the following command from a java application. As you can see, I want to back up the BACKUP directory (which is located on the user home directory) to a CD without creating an ISO image.

From the shell it works like a charm.




But obviously my java implementation of that command doesn't work...any inputs are welcome. If you can tweak around my code to see your idea that would be wonderful. Thanks.

19 years ago
Thanks for your inputs man.

Here's the finished and working version....it might help somebody else.


19 years ago
Thanks for your reply.

build a StringBuffer with all the lines from the input



Can you please tweak my code above to see what you mean?
19 years ago
Background info: I'm triggering a system command to display memory utilization. "free" is a unix command but you can use "mem" on Window$ console. Same functionality.

Anyway, as you know, the "free" (unix) or "mem" (window$) displays many lines of text one after another.

I want to have a label displaying the command output as it is: multiple lines. Just like you see it in console. I want to mirror whatever comes up on console.

Using html tags won't work out for me in this particular situation. It just doesn't do the trick. Still displays the LAST line of command output *with or without* html tags.


any ideas? it doesn't have to be a label. It can be anything as long as it works.

19 years ago
How can I output realtime system resources into a label or textarea?

by system resources I mean memory, swapping, cpu utilitization. You know, stuff that changes constantly by the second.

I would like to mirror exactly what's going on in realtime to a label or textarea.

my idea below...by the way, the "/usr/bin/top" is the linux command to get all relevant resources in realtime. Similar to the Windows Task Manager > Performance tab.

pseudocode here

[ July 14, 2004: Message edited by: Benjamin Mulder ]
19 years ago
Hi:

I created the application with extensions *.exe and *.jar.

But both applications came out with the "J" icon embedded. "To run the application *.exe just double-click on the "J" icon. " Bummer...I want to tell people "click on the cool looking icon" to run the application.

How do I put my own icon on my applications using JBuilderX?

Also, How do I add an icon to the top left corner of a frame?

thanks,

Ben
[ July 05, 2004: Message edited by: Benjamin Mulder ]
Hi:

I'm learning java on my own. I'm on arrays now.

This program is supposed to ask the user to input numbers. As soon as you hit zero (0) the program prints the largest item entered and then quits.

BUG: for some reason, the code sometimes works, sometimes it doesn't. More likely a logical error somewhere I can't see.

For example, you enter 9,3,4,5,7 sometimes it prints out 9. Sometimes it prints 7. It is always the first number or the last one.

Any ideas what's up? many thanks in advance.


[ June 26, 2004: Message edited by: Benjamin Mulder ]
19 years ago
thanks for your reply.

I want to learn it both ways: GUI and shell prompt


Thank you,
Ben
19 years ago
on a while loop...

Instead of using the regular sentinel value "press -1 to quit" I want to tell the user "press esc to quit".

How do I do that programmatically? How do I tell Java that "esc" key means that the program should automatically quit?

Thanks,
Ben
19 years ago
Hi...I'm a newbie.

How do I change the metal look and feel to the macintosh or KDE or Gnome or BeOS whatever else I want? If they are pluggable...where do I get them from and how I install them on my system? sun.com?

any website or reading material or sample piece of code will greatly appreciated.


I'm currently running SuSE kernel 2.4.22 and the following java.


thanks
Ben
19 years ago
Sorry dude, I don't know anything about windows or DOS...so you lost me on that one man.
I was a full-on UNIX user until '93 when I switched to Linux. Happy user ever since!
Check this out...I just hacked a little the piece of code above, and now I get italics and underlined on the output file.
I think I got the basics down now but thanks for your tips.

Mulder.
20 years ago