Search code examples
javaswtcustom-controlsbreadcrumbs

How create a custom breadcrumb control in java using SWT?


I have to develop a simple breadcrumb control using SWT which shows hierarchy of the system folders opened so far in a bar at the top and all the folders present at the current location in a window below. Folders should be hyper linked so one can click to move into them further. From where should I start?


Solution

  • As for the visual part, you can use the Breadcrumb widget from the Opal project.

    It looks like this:

    enter image description here

    To handle selection, just add a SelectionListener to each of the BreadcrumbItems.


    Note that this is not a "hire a programmer" page, so don't expect complete solutions to your problem. If you have specific questions, we are more than happy to try to answer them :)