title: Display file preview in Java GUI
body: <p>I have a dialog box which contains a browse button.
  I have a requirement where I need to browse through a location in my local system and then whatever file the user selects(it may be pdf,doc,excel etc) he/she should be able to preview it in the dialog box itself.
  Can anyone help me out with this.Any help is appreciated.</p>