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

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();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.