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

Darrin Cartwright

Ranch Hand
+ Follow
since Dec 27, 2002
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 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
13 years ago
Hi Angelin,

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



Darrin
13 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
13 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.
13 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 ]
13 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
13 years ago
I tried it with BorderLayout and I still cannot reproduce your problem. Any chance you could post more code?
13 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
13 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
13 years ago
In that case, I think the only way is to access the parameter list in main().
Sorry!
Darrin
13 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?
13 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!
13 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!
13 years ago