Darrin Cartwright

Ranch Hand
+ Follow
since Dec 27, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Darrin Cartwright

Hi Niels,

The home directory is the users home directory, as specified by the OS you are running. If you are using a *nix based system, the value of $HOME is used, such as /home/username. If you are on Windows, ususally C:\Documents and Settings\username\netbeans_user. Netbeans stores lots of info about the projects you are working on in this location under a sub directory, such as /home/username/.netbeans/5.5/.
If you want to change where netbeans stores all of it's info, pass the "--userdir path" option to the executable when starting. Note that the "path" you pass in will contain the files, Netbeans will not create a specific sub-directory in this location, so you will want to make a sub-directory just for Netbeans and pass in its path.

Have fun,

Darrin
Hi Pandu,

You may want the same panel object on each of the tabs, but you will need a separate instance of the panel for each. You are basically adding the same component to the tabbed pane three times, and renaming it each time. Thus, the last name is the one displayed.
Create three of whatever panel1 is, and add those three objects to the tabbed pane.

Hope that helps,

Darrin
17 years ago
Hi Angelin,

Just a guess, but change the following line and see if it helps:



Darrin
17 years ago
Hi Siamak,

There isn't a Swing component capable of displaying complex HTML with CSS. The best Swing can do is some basic capabilities built into the JEditorPane (HTML 3.2 support only). Check out this link for a list of third-party component suites.

Good luck!

Darrin
17 years ago
Hi James,

It rather easy to do in Netbeans. Just create an empty project and select:
File->New->Java GUI Forms->JApplet Form
Give it a name and go!

Hope that helps!
Darrin
And if you can ssh, you can do it all in one command like:

Exchange ssh keys and you won't have to supply a password, which makes it easy to run from a program.
17 years ago
You could also check the result of "rpm -q redhat-release", just in case the file was modified.
Just a thought!
[ July 05, 2007: Message edited by: Darrin Cartwright ]
17 years ago
Hey Guru,

The /etc/redhat-release file should be owned by root, with only root having modify permissions. So I wouldn't worry too much about the file changing. If you think about it, this file was probably added for exactly the purpose you are describing. That is, there is no standard Linux command to get Distribution specific information.

Darrin
17 years ago
I tried it with BorderLayout and I still cannot reproduce your problem. Any chance you could post more code?
17 years ago
Hi Mark,

The reference to o and s will be the same in RAM. The value in RAM would just be an address representing the location of the Object and String.
The compiler is where the difference is taken into account. You told the compiler that reference "o" is an object of type "Object", and the reference "s" is an object of type "String". So the compiler will only let you perform "Object" methods on "o", and "String" methods on "s".

Clear as mud?

Darrin
17 years ago
Hi Craig!

I used a JTextArea with editable set to false. As each line is read from the file you just need to call JTextArea.append(theLine);

Hope that helps!

Darrin
17 years ago
In that case, I think the only way is to access the parameter list in main().
Sorry!
Darrin
17 years ago
Hi Angelin,

I'm sorry, but I cannot repeat your exact problem, It works fine for me. What LayoutManager are you using to control the position of the JScrollBar?
17 years ago
Hi again,

Even JPanels have a default Font associated, you just need to set the Font when you first create the TextSpace(). Example:


Good luck!
17 years ago
Hello,

Why can't you access the filename as a parameter to main()?

Anyway, you could always pass in the name of the file as a "System Property" on the command line. Something like:


Good luck!
17 years ago