8

I am new to eclipse window builder and want to create a simple GUI with it. I want to add the JFileChooser, however it cannot be found in the palette, even though it's a Swing component. I searched through my components, but there is no file chooser.

How can I add the JFileChooser to Eclipse Window Builder?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
  • 1
    *"I searched through my components"* A `JFileChooser` is a window (a top level container, like `JFrame` or `JDialog`) rather than a component (like `JTabbedPane` or `JTable`). Are you sure you are looking in the right place? – Andrew Thompson Jun 13 '14 at 09:55

1 Answers1

28

There is no JFileChooser present by default. But you can add it. Follow the steps:

  1. Go to system and click on Choose Component

enter image description here

2.. Now search for your component and add it.

enter image description here

For further details see this post JFileChooser and eclipse

Community
  • 1
  • 1
Arijit
  • 1,633
  • 2
  • 21
  • 35
  • 1
    Well structured answer! – Sam Dec 01 '14 at 08:19
  • This is excellent advice for any component that's on your class path. I was searching around for this for a while! In my case I wanted to add a JMapViewer map capability to my window and yep, it's just a case of System > Choose Component. It's not as visible as the "Bean" in NetBeans but thank goodness it's still there somewhere. – Adam Gripton Mar 23 '23 at 11:25