How create a custom breadcrumb control in java using SWT? - java

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?

As for the visual part, you can use the Breadcrumb widget from the Opal project.
It looks like this:
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 :)

Related

NetBeans GUI designer window to change between design and source not showing

Right now I am working on a GUI application In java using the GUI builder that comes with NetBeans.
However I have found some kind of strange bug/feature, as I am no longer able to see the window that allows users to change between "source" and "design" (Design is the drag and drop NetBeans gui builder while source is the code where you can add your own methods and so forth).
NOTE: the red is censored information that is not necessary.
When I right click on a component to add event code, then it takes me to the source (without a window for me to change back to design, it goes back to design when i close and reopen it). So I know that NetBeans recognizes that this is indeed a JFrame form with the NetBeans GUI designer, and the source code is indeed availible..
I could not find any answers to this question on this site or on the web, I have tried resetting the windows but it did not work, I also couldn't find the window when I clicked on the window option. I am sure there is some easy question but I am unable to find it. Please forgive me if this was an easy question.
On the menu bar, try clicking View -> Show Editor Toolbar

How to make a palette-like menu using swing?

I want to create a menu with tabs which displays some options like the palette used by Window Builder of Eclipse when I click in a tab.
I need something similar to this:
I guess swing has no element like this. But you could take a look at the Standard Widget Toolkit (SWT) which is maintained by the Eclipse Foundation. It includes a widget called ExpandBar, which is probably what you are searching for. Documentation and API found
here.

GWT- Need Disclosure Container to open horizontally

I have been looking all day for a simple way to modify the disclosure container to open horizontally rather than vertically, to no avail. I am a beginner Java/ GWT programmer btw.
I have figured out GWT does not directly have a current solution. Additionally, the GWT HorizontalSplitPanel will not suffice. I need a button that the user clicks to close a left side panel of links. When the button is pressed again, it will expand the tab to show the links again.
IOW: i need something similar to what google uses here:
https://groups.google.com/forum/?fromgroups#!overview
(when you click the expand arrow on the left hand side of the page)
I need to make this into a container in GWT, available to put widgets inside and outside of it. Any advice for this? Do I really need to create a Java animation and everything from scratch?
I need this functionality too. Did you come up with a solution? I was thinking we could extend SplitLayoutPanel and add in the button/widget to expand/collapse.

java with eclipse - lost design page

I am learning Java using Eclipse - started a project with javax.swing and could view a design page with my page layouts shown and various palets for components etc. Now this design page seems to have vanished and I cant discover any option to recover it. I hope someone can get me back on track.
Have you tried Right-click on class (for example MySwingPanel.java) in package editor Open With->WindowBuilder Editor?
The last time you selected something in Open With - this is the editor to open that file on double click.
Have you tried changing the Perspective? Click the arrows next to the DDMS tab in the upper right hand corner of Eclipse and select the 'Java' Perspective.

JavaFX Drag and Drop with Interacting Objects

I am attemping to implement drag and drop that is not just an image being dragged around the screen but has interaction between dragged and droppedon object.
in short what I'm trying to achive is:
When i drag one 'source' object and drop it on a 'target' object the 'target' object recieves information about the'source' that was dropped on it
This ( http://rakeshmenonp.wordpress.com/2009/07/20/javafx-drag-and-drop/ ) sample application describes its actions as what I'm looking for however the app doesnt work for me. I was able to build the source (it requires a few modifications, as the yahoo shopping URL no longer works) and with a few alterations get the shopping items to show up. However there is no drag/drop functionality.
Does anyone have any other samples that they could point me toward?
All of my javafx searches for drag and drop come back with apps that just deal with moving an object on the screen, or they use 'canvas' which is no longer supported
thanks, stephanie
There is no standard Drag and Drop support in JavaFX 1.3.1 in the way you want to use it. There was an alpha preview being worked on, but it did not make it into the release. As JavaFX is being totally rewritten it is hard to say what support for DnD will be in the new release.
Check this out I found this after relentless search. the below is a drag and drop example in javafx
http://0divides0.wordpress.com/2010/10/21/image-drag-and-drop/

Categories