Miana Husada

Greenhorn
+ Follow
since Feb 04, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Miana Husada

Hi Chantal!
Thanks for your reply. Have you ever used javahelp before? How to use it? can you please explain?
Thanks a lot!
22 years ago
Hi!
I have build an application in java. now i want to write a help file for the user that contains the explanation of the program,about how to use it.
Do you have any idea where should i write the information?using JTextArea? i don't have any idea about it, please help me how it usually be done.
I have prepare 1 menu for help in menu bar, but i don't know what is the action for it.
thanks a lot.
22 years ago
I want to print the content of JTextarea which span more than 1 page.i have tried all suggestion in the forums but still have the same result.
it only print the first page.
Please help me. This is really urgent.Printing have driven me crazy,please please help me.
attached is the code for printing:

THANKS
22 years ago
Hi!
I want to rearrange node position in JTree according to the id which has been saved in each node.
For example:
Node A has 3 children: B(id=9), C(id=2), D(id=5)
the displayed tree should be: A has 3 children: Node C at index 0, node D at index 1, Node B at index 2.
could anyone please help me?
thanks a lot,
Mia
22 years ago
Hi!
I'm using drag and drop method for my JTree. I got problem with the cursor image.
When i'm dragging one node to another node, the cursor image is changing . Although the position of droping the node is correct,the cursor still display image that actually indicates that the position is not correct(circle with line cross)

How can I change the cursor image so that the user will not confuse about it?
thanks
22 years ago
Hi Michael,
thanks for the explanations, it really helps
22 years ago
Hi!
I need help in using JFileChooser.
1.
I want to set the file type so that when the users want to open a file, they can only see <.dat> file.
This is my code:
JFileChooser fc = new JFileChooser();
fc.addChoosableFileFilter(new MyFilter());
fc.setAcceptAllFileFilterUsed(false);
class MyFilter extends javax.swing.filechooser.FileFilter
{
public boolean accept(File file)
{
return file.getAbsolutePath().endsWith (".dat");
}
public String getDescription() {
return "*.dat";
}
}
Problem: file type column has been set in the dialog box, but file chooser can't browse the folder(can't go inside directory and show the desired file).
2.
how to set the save dialog so that user only need to write file name but it is saved by adding the extension also.e.g fileName.dat
Thanks
22 years ago