JavaFX equivalent of Swing JComboBox.KeySelectionManager for ChoiceBox?

Does ChoiceBox have any built-in key selection functionality as was provided by KeySelectionManager to JComboBox?
If so, could someone provide an example?
Else, anyone else think this would be worth a feature request? As a user, I really like being able to tab through choice boxes and just hit a key or two to make my selections as opposed to mousing and scrolling through all the items.

I am also wondering a typical structure of application framework on java fx. Where will the screens be defined and created? How is an operational flow implemented? A simple login form with onSuccess, onError with sufficient redirections will be very helpful. I mean a crud skeleton based on common api of javafx will be a perfect guide.

Similar Messages

  • JavaFX equivalent of SWT Group Widget

    Hello,
    I note that there is no equivalent of the SWT Group widget for JavaFX.
    Is such a Node planned for the future?
    Thanks

    I haven't used SWT, but the widget you describe seems very similar to Swing's BorderFactory.createTitledBorder - for which a JavaFX equivalent rendering is discussed in this thread:
    Re: FXML: Equivalent to BorderFactory.createTitledBorder "Equivalent to BorderFactory.createTitledBorder "

  • Oracle equivalent of SQL Server's "FOR XML" and "OPENXML"

    Hi
    Can someone please tell what are the Oracle's equivalent of SQL Server's "FOR XML" and "OPENXML" features?

    Probably you can try General XML forum General XML
    Gints Plivna
    http://www.gplivna.eu

  • Syntax equivalent of CREATE TABLE AS for Functions?

    Hello,
    I'm trying to refresh my functions with a copy of them from another database. Is there a syntax equivalent of CREATE TABLE AS for Functions? Basically I want to drop my old function in my dev environment and recreate it with the version on prod. I need to use this in a loop for all functions in prod, so just using the plsql statement itself won't solve my issue.
    Thanks,
    John

    >
    Is there a syntax equivalent of CREATE TABLE AS for Functions?
    >
    No.
    >
    Basically I want to drop my old function in my dev environment and recreate it with the version on prod. I need to use this in a loop for all functions in prod, so just using the plsql statement itself won't solve my issue.
    >
    The proper way to do that is:
    1. check the DDL out of the PROD version control system
    2. check the DDL into the DEV version control system
    3. execute the DDL for each function using sql*plus or another tool
    If you don't have your production DDL in a version control system you need to solve that problem first and now is a good time to do it.
    Functions typically make references to other database objects (e.g. tables, views, synonyms, procedures, packages, etc) and those objects need to be updated in your 'dev' environment also or the function may produce different results than expected.

  • Older equivalent of "AICS2-VBScriptGuide.pdf" for Illustrator 10?

    (I asked this question a couple of days ago in the Illustrator Scripting forum but didn't connect with anyone there who could help. It's a question that fits both fora.)
    It has fallen on me to update a departed developer's C++ code for Windows that uses the Visual Basic type library within the Illustrator 10 "ScriptingSupport.aip" plugin. I can see how to make calls from C++ to get Illustrator 10 to draw some graphs from dynamic data.
    But the scripting syntax used by this existing C++ code, which works well in Illustrator 10, doesn't seem to work at all in Illustrator CS2. Certain functions present in the Illustrator 10 "ScriptingSupport.aip" type library seem to be entirely missing in the CS2 version of the same plug-in.
    I can't find any documentation of the older "ScriptingSupport.aip" syntax to compare what the existing code is trying to do against the techniques I might use with CS2's syntax (for which I had no trouble finding documentattion, in the file "AICS2-VBScriptGuide.pdf").
    Alas, the Illustrator Developer Center link for "Download archived Illustrator SDKs" takes me nowhere different than the page on which I selected it, and I've not found any relevant older information by searching the archives.
    Can anyone help me find the older documentation?
    Thanks,
    Glenn Picher
    Dirigo Multimedia, Inc.
    [email protected]

    Following up for the record, the older equivalent of "AICS2-VBScriptGuide.pdf" for Illustrator 10 can be found on the Illustrator 10 product CD in "Illustrator Extras/Scripting/Documentation/Illustrator Scripting Guide.pdf" . In the same folder is a document with some VIsual Basic fixes, "Scripting Guide Errata.pdf". Thanks to those who helped me find this!

  • Swing Visual Designer for Eclipse

    I've been trying to find a good RAD/GUI builder plugin for Eclipse. Any suggestions?

    Hi,
    It would be good to have some feedback about Swing GUI builders for Eclipse, are they usable and good. I heard much good things on Eclipse and am curious to try (althought NetBeans are still very good for me), but I develop Swing application and porting to SWT is unacceptable for me (it is not so advanced as Swing and I need many features that are in Swing only).

  • JComboBox makes for nice security vulnerability under X11?

    I noticed a couple years ago that when I set a breakpoint inside a JComboBox state change event handler on a Java application or applet running under X11, the entire desktop would hang. Back then, I checked the Swing bug database and found an issue regarding this, but it was closed with an evaluation that pretty much simply said that the developer didn't know how to fix it.
    When I brought this up in the netbeans mailing list, someone suggested that this could be a security issue if someone intentionally/programmatically stopped all processing from within this event handler (perhaps from an applet). Perhaps, as a security vulnerability this bug would get more attention!
    Well, it's been over a year and the latest JDK 1.6b10 (build 25) still has this problem. So, obviously it's not bothering anyone, except me, enough to do anything about it. I could try to file this bug under Swing again (probably with same outcome) or try filing it as a security bug. What are people's thoughts?

    Hi
    Try going here:
    http://europe.nokia.com/A4423034
    Or alternatively : find the product pages for the 5700 by going to www.nokia.com/phones, then pick out 5700, then dip into "PC software" and "Music"
    Cheers

  • Customized JComboBox Editor for JTable

    Hi,
    I am new to swing development and have gotten my self stuck on an issue. Basically I have a JTable that is dynamically populated from the database, in which one of the columns has a customized JComboBox Renderer and Editor. The default values load up fine when the page loads up but when I selected a new value in the combo box and select a new row in the JTable, the combo box defaults back to the original value. How can I make sure that the new selection is maintain.
    Thanks, Anthony
    Here are my Driver, Renderer and Editor:
    excerpts from the Driver
    contract.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    keys = contractSelectedEvent.getKeys();
    String sql = contractSelectedEvent.getSchdSql(keys);
    table = contractSelectedEvent.getStatusTable(sql);
    table.setDefaultRenderer(CashFlow.class, new CashFlowRenderer());
    table.setDefaultEditor(CashFlow.class, new CashFlowEditor());
    public class CashFlowRenderer extends JComboBox implements TableCellRenderer {
    protected QueryComboBoxModel comboModel;
    /** Creates a new instance of CashFlowRenderer */
    public CashFlowRenderer() {
    super();
    comboModel = new QueryComboBoxModel("Select Ref_ID, Ref_Desc From Ref Where
    Ref_Typ_ID = 910 order by Ref_ID ");
    super.setModel(comboModel);
    public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus,
    int row,
    int column) {
    if(value == null) {
    return this;
    if(value instanceof CashFlow) {
    //set the cashflow equal to the value
    CashFlow cashFlow = new CashFlow(((CashFlow) value).getCashFlow());
    setSelectedItem(cashFlow);
    else {
    //default the cashflow
    CashFlow cashFlow = new CashFlow();
    setSelectedItem(cashFlow.getCashFlow());
    return this;
    public boolean isCellEditable() {
    return true;
    public class CashFlowEditor extends JComboBox implements TableCellEditor {
    protected transient Vector listeners;
    protected transient String originalValue;
    protected QueryComboBoxModel comboModel;
    /** Creates new CashFlowEditor */
    public CashFlowEditor() {
    super();
    comboModel = new QueryComboBoxModel("Select Ref_ID, Ref_Desc From Ref Where Ref_Typ_ID = 910 order by Ref_ID ");
    super.setModel(comboModel);
    listeners = new Vector();
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
    if(value == null) {
    return this;
    if (value instanceof CashFlow) {
    setSelectedItem(((CashFlow)value).getCashFlow());
    else {
    CashFlow cashFlow = new CashFlow();
    setSelectedItem(cashFlow.getCashFlow());
    table.setRowSelectionInterval(row, row);
    table.setColumnSelectionInterval(column, column);
    originalValue = (String) getSelectedItem();
    return this;
    public void cancelCellEditing() {
    fireEditingCanceled();
    public Object getCellEditorValue() {
    return (String)getSelectedItem();
    public boolean isCellEditable(EventObject eo) {
    return true;
    public boolean shouldSelectCell(EventObject eo) {
    return true;
    public boolean stopCellEditing() {
    CashFlow cashflow = new CashFlow((String)getSelectedItem());
    setSelectedItem(cashflow.getCashFlow());
    fireEditingStopped();
    return true;
    public void addCellEditorListener(CellEditorListener cel) {
    listeners.addElement(cel);
    public void removeCellEditorListener(CellEditorListener cel) {
    listeners.removeElement(cel);
    protected void fireEditingCanceled() {
    setSelectedItem(originalValue);
    ChangeEvent ce = new ChangeEvent(this);
    for(int i = listeners.size(); i >= 0; i--) {
    ((CellEditorListener)listeners.elementAt(i)).editingCanceled(ce);
    protected void fireEditingStopped() {
    ChangeEvent ce = new ChangeEvent(this);
    for(int i = listeners.size() - 1; i >= 0; i--) {
    ((CellEditorListener)listeners.elementAt(i)).editingStopped(ce);

    First off, I wouldn't subclass JComboBox to create a custom renderer/editor. I would have a renderer/editor component that makes use of a JComboBox. But that is just me.
    In order for setSelectedItem to work, the items in your combo box have to compare against each other correctly with equals(). Since you are creating new instances, your objects (even though they contain the same data) are going to be different instances and aren't going to be considered equal. Write your own equals() method in your CashFlow object that tests for equality based on the actual values in the objects and you should be fine.

  • JavaFX embedded into Swing applications - success

    For those of you who are trying to use JavaFX within Swing here is an easy way to do it.
    Rectangle rect = new Rectangle();
    rect.$width.setAsDouble(100);
    rect.$height.setAsDouble(100);
    SGNode sgNode = rect.getSGRectangle();
    JSGPanel sgPanel = new JSGPanel();
    sgPanel.setScene(sgNode);
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BorderLayout());
    mainPanel.add(sgPanel, BorderLayout.CENTER);The same approach also works for custom nodes you have developed yourself. Note that you can change values of public variables declared in your JavaFX node with e.g. rect.$width.setAsDouble(200.0); When you do this be sure you run the value update code from event dispatch thread.
    I guess this makes JavaFX more usable for us who develop desktop applications with Swing and can't start rewriting everything in JavaFX :-)
    Edited by: aless on Dec 12, 2008 6:51 AM

    aless,
    can you provide concrete example of your approach. im new to fx really unable to follow your example. I tried to follow pmd's explanation but im unable to load the fx classes by the same class loader. Im getting the following error in the runtime
    Thanks and appreciate your help.
    Sri
    Exception in thread "main" java.lang.ClassNotFoundException: test.TestFx
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at test.TestJavaFX.main(TestJavaFX.java:27)
    Profiler Agent: Initializing...
    package test;
    import com.sun.scenario.scenegraph.JSGPanel;
    import com.sun.scenario.scenegraph.SGNode;
    public class TestJavaFX {
    public static void main(String[] args) throws Exception {
    Class c = Class.forName("test.TestFx");
    TestFxInterface test = (TestFxInterface) c.newInstance();
    SGNode sgNode = test.getSGNode();
    JSGPanel sgPanel = new JSGPanel();
    sgPanel.setScene(sgNode);
    package test;
    import com.sun.scenario.scenegraph.SGNode;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Rectangle;
    public class TestFx extends CustomNode, TestFxInterface {
    public override function create(): Node {
    return Group {
    content: [
    Rectangle {
    x: 10,
    y: 10
    width: 140,
    height: 90
    fill: Color.BLACK
    Circle {
    centerX: 100,
    centerY: 100
    radius: 40
    fill: Color.BLUE
    public override function getSGNode(): SGNode {
    return
    this.impl_getSGNode();
    package test;
    import com.sun.scenario.scenegraph.SGNode;
    public interface TestFxInterface {
    public SGNode getSGNode();
    }

  • JSF selectOneChoice  VS.  Swing JComboBox

    I have been so impressed with how clean it is using a JSF selectOneChoice with a selectItem and selectItems.
    Using selectItem.itemValue and selectItem.itemLabel is intuitive, and fills a very common need.
    I'm wondering if there is a similar type of component I can use with a JComboBox. It seems that a LOV binding needs a target data collection (and iterator); but I simply want a JComboBox to display labels and manage values, independent from an iterator.
    Any suggestions are very much appreciated!!!
    Jeffrey

    Well I would just like to update this thread as more than a year has passed since I began working on ADF BC & Faces. Coming from a SWING background, I've learned quite a lot about web development. For starters, it’s not as easy as "Drag and Drop" and RAD like some demo videos or evangelical pitches makes it out to be. There is a steep learning curve (about half year with daily interaction with JDeveloper) to get comfortable with this technology. Personally speaking, a firm understanding of page definition bindings was the hardest to grasp, but then again maybe I’m just a bit slow. Compared to SWING or desktop UI development, the richness of ADF Faces UI is limited to boundaries of the web browser.
    <br>
    However, within the last month, our team has made great strides in taking the first step in launching a ported module our internal system (legacy Oracle Forms used by hundreds of hospital employees). Our Dynamic JDBC authentication piece was the keystone for our first module (a modified version from Steve’s infamous “not yet documented samples”). Trying to take full advantage of this technology, we also have created reusable pages and BC components for CRUD operations.
    <br>
    There is still plenty of work to be done as we are now struggling with team development (difficult due to multiple file modifications within JDev’s). We are also eagerly awaiting several rich UI in the next release of ADF Faces. Overall, the light at the end of the tunnel is starting to appear and I hope the Oracle ADF team and everyone on this forum continues to actively contribute to the growth of this community.
    <br>
    Here are a couple of screen shots of our app if you are interested.
    http://i108.photobucket.com/albums/n23/zeoneozero/login.jpg
    http://i108.photobucket.com/albums/n23/zeoneozero/menu.jpg
    http://i108.photobucket.com/albums/n23/zeoneozero/spcreg.jpg
    Cheers,
    -Z

  • JavaFX compared to Swing

    Hi All
    I am trying to work with new JavaFX, I got an experience with Swing, with my first impression it seems that controls like Dialog, messageBox, internalFrame, Frame, Dialog, are not there, maybe because this is the way to make the new RIA looks like web sites, but what are the controls instead of these Swing controls?
    Shlomo.

    There are no specific replacements if you are looking for things like what JOptionPane provided.. you have to build your own dialog with a Stage.

  • Swing JComboBox causes scrolling problems in applet

    I have an applet with a JPanel that contains a JComboBox that lists font selections for a JTextPane in a JPanel below it. It contains about 12 items, of which only five are visible at a time. If I choose any of the first five and scroll the page on which the applet is running, there are no issues. However, if I scroll the page after scrolling down the list to the sixth item, regardless of whether or not I actually select it, it causes the graphics in the applet to corrupt. The JComboBox code is:
    private JComboBox getFontFaceCB() {
                   String[] fontNames = new String[fontlist.length];
                   for (int i = 0; i < fontlist.length; i++){
                        fontNames[i] = fontlist.getFamily();
                   if (fontFaceCB == null) {
                        fontFaceCB = new JComboBox(fontNames);
                        fontFaceCB.setBackground(Color.white);
                        fontFaceCB.setPreferredSize(new Dimension(150, 30));
                        fontFaceCB.setMaximumRowCount(5);
                        fontFaceCB.setSelectedIndex(0);
                        fontFaceCB.addItemListener(new java.awt.event.ItemListener() {
                             public void itemStateChanged(java.awt.event.ItemEvent e) {
                                            currentFont = fontlist[fontFaceCB.getSelectedIndex()];
                                            StyleConstants.setFontFamily(textStyles, currentFont.getFamily());
                                            jTextPane.setCharacterAttributes(textStyles, true);
                                            viewWidget.repaint();
                   return fontFaceCB;
              }This also happens if I set the default index to something that one must scroll down to reach (e.g. the sixth index) I was wondering if anyone else has come across this issue and has any idea as to how this may be resolved.
    Also, if the window is minimized, resized, etc. the graphics also corrupt, but only after the aforementioned condition.
    Edited by: BANZ111 on Dec 12, 2007 3:59 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I have found the solution:
    I had lightweight components intertwined with heavyweight ones, which, until now, I never regarded as being a possible source of problems. Apparently, when you scroll down a JComboBox, it changes from light to heavy weight? At any rate, I found this with a lot of other useful tips here:
    http://72.5.124.55/javase/6/webnotes/trouble/TSG-Desktop/html/gchzf.html#gdldq
    Perhaps this can be of use to anyone else who gets a similar problem.

  • SceneBuilder 1.1-b18 stubs an items list for ChoiceBox elements

    In Scene Builder, I placed a ChoiceBox and gave it an fx:id.
    In the "controller" class:
    @FXML ChoiceBox<UserGroup> userGroupCB;In the "initialize()" method of the "controller", I set a StringConverter for the choice box so that it would display the "name" property of the domain object:
        @FXML
        protected void initialize() {
            userGroupCB.setConverter(new StringConverter<UserGroup>() {
                @Override
                public String toString(UserGroup userGroup) {
                    return userGroup.getName();
                @Override
                public UserGroup fromString(String arg0) {
                    return null;
            ....Prior to setting this converter, I had added a toString() method to the UserGroup and everything worked just fine without the converter. However, I really didn't want to default to using the toString() method, so I set the converter.
    Boom! Crash! A ClassCastException occurred when setting the converter in the "initialize()" method. Scratch head, pull hair.
    By chance, I looked at the FXML in an XML editor and discovered that Scene Builder had stubbed out an <item> list!
        <ChoiceBox ... >
          <items>
            <FXCollections fx:factory="observableArrayList">
              <String fx:value="Item 1" />
              <String fx:value="Item 2" />
              <String fx:value="Item 3" />
            </FXCollections>
          </items>
        </ChoiceBox>So, yeah, of course, unbeknownst to me, it was expecting a String and I was specifying a UserGroup in the converter! (See also the @FXML ChoiceBox<UserGroup> ivar above.) Silly me.
    Why is Scene Builder stubbing out this <item> list?! There's no reason for it.
    Note that it does the same thing for ComboBox.
    I suppose that when I invoke "setItems()" on this choice box [this occurs outside the initialize() method because the values in the choice box are context sensitive, but always UserGroup items], but I shouldn't have to work around what shouldn't be a problem in the first place.
    Does anyone else think this is unexpected behind the scenes behavior for Scene Builder?

    Eric Le Ponner wrote:
    Scene Builder puts some sample item strings in ChoiceBox, ComboBox... to
    improve previewing experience.
    However it currently does not offer a way to clear/edit items. That's a known limitation.
    You can workaround this easily by clearing the "items" property manually in the FXML file.I understand that putting the sample data there was meant for previewing. And once discovered by looking at the XML in a code editor, I removed those items.
    However, I would not describe this as a "limitation". It's bad design, especially since, if you do not work with the FXML directly, but only through Scene Builder (and that's what we should be doing), you wouldn't really know that those items are there. Unless the user selects an option called something like "add sample data to FXML file", not sample data should be there.
    Improving previewing experience can be done other ways than inserting "sample" XML into the FXML document. The preview runner can do this as it walks the scene graph, inserting sample data where it would prove useful. There is a "Show Sample Data" if you want to see data. Even that should not be putting the sample data into the FXML file.
    The sample data just doesn't belong in the FXML, period.
    Time to file a bug report.
    Edited by: pfurbacher on Mar 14, 2013 2:59 PM

  • How do I get to the Firefox equivalent of IE's "check for newer versions of stored pages" under tools, IE options

    I need the firefox equivalent of Internet Explorer's (v8) "check for newer versions of stored pages under Tools, Internet Options, Browsing history. I cannot find where this would be in firefox and have an application that depends on seeing a "fresh" copy of a page each time it's served up by the web. Please advise.

    You can find the tools under the Comments menu.

  • What is the equivalent app on an iPad for QuickTime on an iMac?

    I've created several videos using iVideo on an iMac that are in the .mov format and which are played using QuickTime.
    I would like to play them on an iPad. I have iMovie installed. Is that the equivalent of QuickTime for playback? But how do I access the videos on the iMac? I'm using a direct USB connection, but I don't find the tools on the iPad to access the iMac videos. I'm synchronizing data, but videos don't seem to be an option. Do I have to do it via iTunes? or iCloud? or what?
    Thank you.
    George

    Hello George,
        There are a few ways you can do this, depending how and where you saved your finished move, connect your iPad to your computer, open iTunes and select your iPad in the side bar under Devices.
         Once selected you will see tabs for all of your content on top, select Movies then you can select the movies you want to sync. You can then sync all your movies or select only the ones you want.
         If there are no movies, look at you sidebar select Movies under Library and you can either Add to Library, iTunes-File-Add to Library ( Command O ) or you can drag and drop them in there.
        To add then form iMovie,when your finished editing,  select Share - iTunes.
        In short, put them in iTunes. That is what I do, and it works find.
        Hope that helps

Maybe you are looking for

  • How do I change the highlight color of forms?

    I'm using Acrobat Pro X. I need the form highlights to be transparent when another user opens the pdf, views and fills individual forms out. Trying to keep this very simple for end user. I don't want to give the user instruction on how to go to prefe

  • Illustrator CS6 does not save PDFs to artboard

    I have had this problem more than once. The first time it happened, I uninstalled AI and did a fresh install which fixed it for a short time. When I save a PDF out of AI, it does not save to the artboard constraints. This is a screen shot of my AI do

  • JNI FC1063 HBA support on solaris 10

    Hi , I have upgraded Solaris 9 to Solaris 10 using Live upgrade.Server is SUN fire V880 and the HBA is JNI FC1063. After upgrading ,I am not able to see the FC LUNS . Does The JNI Fc1063 HBA has support on Solaris 10. Thanks

  • Authorization Check in Business Transactions in CRM 2007

    Hi everybody, I have a problem whit the authorization check in CRM 2007. This link help me to follow the steps http://help.sap.com/saphelp_crm60/helpdata/en/e9/b29a39e7aee372e10000000a11 I follow this steps: 1.- Created a new single role on the PFCG

  • JMS, MQ WebSphere messagesplit and commit scope

    Dear all I have a problem regarding read/write to WebSphere MQ. I'm sending messages from ERP to XI to MQ Websphere. There is a twist on my scenario. When XI receive a message from ERP XI creates 3 messages: Begin, Data and End. This is because the r