0

Hi
My name is richard west and i am wondering if anyone knows how to use windows common controls in java. By common controls i mean open file dialog, save as dialog, font dialog and etc. Please if someone knows please
e-mail me the codes at freesoft_2000@yahoo.com or show me the codes and how to do it in this forum.

someone please please help me

Thank you

Yours Sincerely

Richard West

2
Contributors
1
Reply
2
Views
14 Years
Discussion Span
Last Post by nanosani
0

this is the code for opening file dialog ... save file dialog is implemented similarly with jFileChooser

private JFileChooser jFileChooser1 = new JFileChooser();
if (JFileChooser.APPROVE_OPTION == jFileChooser1.showOpenDialog(this)) {
// Call openFile to attempt to load the text from file into TextArea
openFile(jFileChooser1.getSelectedFile().getPath());
}
this.repaint();

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.