Java Code Examples for javax.swing.JFileChooser.getName()

The following are Jave code examples for showing how to use getName() of the javax.swing.JFileChooser class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: incubator-netbeans   File:   View Source Code Vote up 5 votes
String getText (JFileChooser fileChooser) {
    if (exists) {
        return "<html>" + fileChooser.getName(getFile()) + "</html>"; //NOI18N
    } else {
        return "<html> </html>"; //NOI18N