KeyListener - Bug or feature?

In the IRT Reference Implementation adding a KeyListener to an HScene works, but adding it to an HContainer does not. (I tried that with focus on HScene and focus on the Container)
Is that how it should work (so a reference to my HScene is always needed)?
Thanks a lot! elBoB

Well it looks like your exact problem is listed on that incompatibility list:
JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
aTimeStamp.compareTo(aDate) //NO LONGER WORKS
This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
For more information, see bug 5103041.
Michael Bishop

Similar Messages

  • BUGS and FEATURES REQUESTED. Please add to it.

    I've been using the z10 for the past couple weeks and wanted to start a thread of comprehensive Bugs and Features Requested.
    I've labeled Bugs by letters (A,B,C...) and Features Requested by numbers (1, 2, 3...) so that others can add sequentially.
    BUGS
    (Not listed in any particular order)
    (A.) Contact App adds current date as birthday. When I edit my contact, the current date gets listed as the birthday in local contact.
    (B.) Duplicate telephone numbers listed. Telephone numbers show up twice in my Contacts (e.g.., if I have the contact's cell saved in (000) 123-4567 format and the person has the number listed in Facebook, I get a duplicate entry of +10001234567).
    (C.) Telephone numbers and emails are not actionable in Web pages. In webpages, I can't click on telephone number to call (e.g., I look up a phone number for a restaurant). I should be able to easily call or copy into the Phone App or E-mail App.
    (D.) Auto capitulation for words on the word substitution list is wrong. For example, when the word substitution contains more than one word. I have "ru" change to "are you" but if the first letter is capitalized (R) then both words become capitalized words (Are You). I used to have shortcuts like "mysig" to create email signatures with legal disclaimers but I can't do that now.
    (E.) Backspace delete doesn't work consistently. The Shift+Delete function seems only to work after moving the cursor. This feature is the Alt+Del action to delete words after the cursor.
    (F.) All Emoticons do not list. Emoticons do not all fit on the the two screens (lists) of emoticons. I.e., two columns are missing from view and can be seen when sliding (swiping) between the lists. Also, sometimes when I select an emoticon, it doesn't correspond with the picture of the one I intended. I believe this error is related. As a separate note, there should be a way to see the underlying symbols of the emoticon. (Often times, other people don't have BlackBerrys so I'd like to know what symbols would be sent--my prior 9800 would show the characters as i scrolled through them).
    (G.) BlackBerry keyboard doesn't always work in input fields. E.g., certain Web pages. (I found a work around; two finger swipe up from the bottom makes the keyboard appear)
    (H.) Sent messages stay unread. This seems to be an issue when an app sends an email (e.g., share article). The email with the sent indicator (checkmark) stays bold and I have listed 1 unread email. I can't mark as read/unread but if I delete the sent email, my unread message gets cleared.
    (I.) Contact already added but I get the option to add instead of view contact. For some contacts, I get the option to add to contacts in the action menu cascade when that person is already in my address book. This bug is for emails and text messages.
    (J.) Cannot call from text message. When I hold a text message and select call under the action menu cascade, the OS opens up the phone app but doesn't call.
    (K.) Composing messages by name. When composting messages, the input must be by first, middle and last name. It should be, instead, by string and include nickname. E.g., if the person's name is "Andrew B. Cameron" I must type the name in as such. I can't type in "Andrew Cameron" or "Andy Cameron."
    Features Requested and Suggestions for Improved User Experience
    (In no particular order)
    1)      Option to reply in different ways from the Call List. Be able to select a name in a call list and have options to call, text or email the person. The action menu allows calls to other numbers but I can't choose to text or email the contact instead. Sometimes, I missed a call and want to reply via text because I’m not able to talk. (Long hold on the Torch 9800 trackpad button brought up the action menu allowing me to call, text, view history, add to speed dial, e-mail, delete, etc.)
    2)      Option to reply in different ways from the Hub. Related to above, when selecting an item in the hub, have the option to contact the sender or caller with multiple different ways.
    3)      Only show number once in contacts application. Tap on the number to bring up the "action" cascade menu with options to call or text the number. Why is the same number listed twice (once to call and below again to text it)?
    4)      Timestamps for individual text messages. I can't tell exact time on individual text message if it comes in near the time of another text. All messages are in one "bubble."
    5)      Ability to select MMS or text for a message. Sometimes I write a text longer than 160 characters and I prefer it to be sent in one message (i.e., MMS mode) rather than being broken into one or more standard text messages. I had this ability with my 9800.
    6)      Send button should be moved for text messages!!! Why the heck is it right underneath the delete button?!? Or next to the period button? I often times have accidentally hit send when composing text. It's very annoying and embarrassing. (Also, what happened to the ability to hit enter for a return carriage to next line?)
    7)      Bigger magnifying glass. My finger is often over the area I need to place the cursor. I find it difficult and erratic to place the cursor.
    8)      Select all option. Add the option to select all text in action menu cascade.
    9)      E-mail recipients and message headers. Difficult to tell if you are one of many email recipients. Can we have a way to pull the email down to see the list of recipients rather than have to click to expand the header info? I know this request is a little picky, but that's how it was done in the previous BlackBerry OS which I preferred; it is easier and faster to pull the e-mail down and 'peek' to see which e-mail box received the message, message status, from and to fields. This change would be consistent with BB's flow/peek rather than click.
    10)   Browser navigation. Hold down back arrow to get a list of recently visited websites similar to a desktop browser.
    11)   Dark/Night mode. A night mode (maybe in the drop down menu) to change all the white and bright backgrounds to black or dark which would be helpful when reading/viewing things at night in bed/etc.
    12)   Number of contacts. Ability to see how many contacts I have.
    13)   What happened to groups or categories? I'd like to have back the ability to filter or see categories and also a way to contact everyone in a category. E.g., family or friends or coworkers, etc.
    14)   Shutter sound mute. I was at a wedding and wanted to take pictures during the ceremony but the shutter would was too loud.
    15)   East Asian Language Input. I bought my parents two Samsung Galaxy S3 phones over the weekend because they need Korean input (and the Kakao talk app). (BTW, S3 is a great phone but I prefer the Z10 after having the weekend to use the Android phones).
    16)   Ability to freely place icons on the homesreen. Currently, icons are forced top left-right-to-bottom. I prefer to space my icons out.
    17)   Add a contact to the homescreen. I'd like to place a shortcut (similar to a Webpage) to the homescreen for a contact which will open up the contact. Android allows this feature and so did my previous 9800.
    18)   Search Contacts by nickname. The contacts app doesn't allow me to search by, e.g., Andy, even if I have that as my contact's nickname. The previous OS allowed this type of search which was very helpful.
    Finally, as a note, I've been using the BlackBerry Z10 for the past 2 weeks and it's a great platform. I just bought two Samsung Galaxy S3 phones over the weekend for my parents so they could use the Korean language input and related features so I spent a lot of time with the Android platform, setting it up and teaching them how to use it. The S3 is a great phone too.
    I prefer, however, the way BlackBerry has done their OS 10 and the integrated management of messages.
    It's too bad that BB doesn't have Korean input and apps like Kakao Talk or I would have considered it for them.
    The BlackBerry 10 is a great platform and I look forward to the continual improvements that will only make the experience better.

    This is a great post.
    I couldn't have written it myself better.
    I'm also in dying need of Korean input as I can't communicate with my Korean friends.
    But I second every point.
    I hope the tech teams are reading this.

  • Drag File From Safari Download Window to Other Volume - Moves not Copies File - Bug or Feature ?

    Hi,
    Appreciate comment on what I thought was unusual Mac OS behavior.  Running Safari 5.1.5, OS 10.6.8.
    Mac OSs in my experience copy a file when it is dragged and dropped to another volume/drive. (Let's leave classic desktop out of this.)
    It may be the first time I've ever done it in any version of Safari, but just dragged a file directly from the Safari Downloads panel onto another drive's icon - and it appeared to "move" the file from its original download destination to the other drive and not simply copy it onto the other drive.
    Didn't look like a copy and standard Finder delete since I didn't see file in the trash, although it was gone from the finder window for the download folder (Desktop in my prefs), and afterwards Safari Download Window magnifying glass icon "can’t show the file “filename” in the Finder because “filename” has moved since you downloaded it." It's reproducible.
    Assuming it's not unique to my configuration, is this a bug or "feature" ?
    Thanks.

    HI,
    From the Safari Menu Bar click Safari/Preferences then select the General tab.
    You can deselect: Open "safe" files after downloading.
    Carolyn

  • Bug or feature : Using portlets with edit mode on a page in the portal

    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portlet on
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons the browser
    can load.
    hope someone can help me out,
    Lodewijk

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • Bug list/feature observations for BB10 on Z10

    BUG LIST/FEATURE OBSERVATIONS - Z10/BB10:
    1. CRITICAL granular control of notifcations/alerts e.g. a different sound/volume/vibration per mailbox or alert type has been completely removed in BB10 and needs to be reinstated as an urgency
    2. support for BBM and Calendar in Landscape mode is missing. A workaround for BBM can be found via the Hub, not the BBM icon.
    3. the sound alert for a text message sometimes doesn't play. It seems to vibrate okay, but every 5th or so text message, it doesn't play the alert sound.
    4. CRITICAL if you set the display format for your emails to 'conversation style' (so that messages on the same thread are grouped - very helpful) but a folder which one of the messages is in isn't synced, then fresh inbox replies to that chain won't get shown to you in the Hub. It transpires that /GOOGLEMAIL/SENT ITEMS is a sub folder that's affected by this. It means any chain you reply to using your Blackberry, subsequent replies will not be displayed in the Hub. "Solution" is to disable 'conversation style' for thread display.
    5. WhatsApp, Bloomberg Mobile (not the terminal login App) and BeBuzz should be top App conversion targets.
    6. when you click the Text Messages icon it should take you to your text messages, not the Hub (which is what happens if you have an email open).
    7. the lock screen currently has just one icon for emails - ALL emails, regardless of mailbox. It has a fairly generic number for unread messages in ALL of the boxes combined e.g. "200 emails" - this needs to be split our per mailbox.
    8. opening a tenth App closes a previously opened App. It should ask you before closing the other App as it's a pain if the App it kills is Skype, Voice, Maps etc
    9. the current battery icon is too small to tell the difference between 30% and 15% (for example) - touching it should display the %, or something similar.
    10. the screen rotation can be extremely slow. Often you can count 1.. 2.. 3.. 4 before the screen switches orientation. Given how often you'll switch between orientations during use, it quickly gets annoying. 
    11. when the screen finally rotates (see point 10) the position your cursor was in in the previous orientation is lost
    12. it's not quick to put a question/exclamation mark into text. Fine, have a sub menu for general punctuation - but not these extremely common marks (which is exactly why comma and full-stop (period) are full-time keys)
    13. the super-useful "delete from device OR delete from device & server" has been removed entirely!
    14. using the browser in Landscape mode means "open in new tab" is in a sub-menu. As it's one of the most used features in any browser, and unlike Apple iOS you can't just hold a press to activate 'open in new tab', it really slows you down.
    15. sometimes numbers are included in the on-screen keyboard, sometimes not. Can they be made permanent?
    16. twice now my 'enter password to unlock' screen has appeared without the keyboard, meaning I couldn't enter my password. About 2 times out of 200, or 1%
    17. new messages - have some small icons in the status bar at the top of the screen rather than require a swipe UP&RIGHT to see the Hub
    18. in the Hub, the icons for each message don't show if the message was successfully sent. To check if an email/text was sent okay, you have to go into the message (2 levels)
    19. you STILL can't see when a text message you received was actually sent by the other party. Quite a basic function.
    20. you STILL can't swap email accounts when forwarding a message
    21. Calendar reminders often don't trigger the red LED. In fact, the LED is generally pretty inconsistent, often not flashing, or flashing only for a short while.
    22. the device supplied ring tones/alert tones are pretty terrible and you cannot set variable volume levels (see point 1).
    23. you can select .mid files for your ringtone even though these aren't compatible (when someone calls, your phone will be silent).
    24. there's an awkward 3 second pause between clicking Send and a text message actually sending. Why awkward? Because you then have to wait/waste 3 seconds waiting to see if your click was registered, and if the message was sent.
    25. GMAIL - boring standard message in the Inbox, no labels or anything funky - Universal Search won't find it if it's more than 1 WEEK old?
    26. The power-user controls for Universal Search seem to have vanished? Indexing, Extended Search etc? All you can choose now is "source"?
    27. Weird one this. The phone stopped ringing! Checked and double-checked all Notification settings, even did a reboot but nope, phone will not ring for an incoming call! A fresh reboot finally fixed it - I was using a 206kb mp3 which may or may not be relevant
    28. I'd love to know why G Maps is missing (assume aggressive move from Google?)
    29. it's sometimes tricky to clear Missed Calls. I think you might have to go into the Missed Calls menu and then sub menu? Seems to be more effort than it should be - previously you just clicked the Dial button once to view and presto, missed call indicator cleared. Hardly a huge thing but then as with a lot on this list, it's all about saving a second here, a second there = a big saving over the day or week.
    30. Contentious I know, and certainly not a 'fault', but the charging points are gone so I can't get a desktop stand (ironic given the battery life is now more of an issue)
    31. when composing a text message you'd don't see the conversation history for that contact until you've sent the new message.
    Thanks
    edit: numbering

    CRITICAL:  You cant control the image size for pictures when sending as attachemtns in email. In previous Os 6 & 7 you could select, "smaller, mide size, large or original". These options are gone.

  • Is this BUG or Feature of APEX 4.0.1 - Any expert please help to answer

    Try this to stimulate the BUG or Feature
    - Development -
    1. Create Basic Master Detail with tabular form
    2. Create a basic LOV and display NULL -> RETURN NULL
    - Run -
    1. Run the Page click "ADD ROW"
    2. Do not enter any data into the tabular
    3. Click on Apply Changes
    Apex smart enough to know user do not want to add anything very nice....
    now... observe this
    - Development -
    1. Modify the LOV, remove the display NULL, so it will show first value of the LOV
    - Run -
    1. Run the Page click "ADD ROW"
    2. Do not enter any data into the tabular
    3. Click on Apply Changes
    Apex don't bother to test all validations straight to GIGO and end user see those ORA-.
    I have a page that the tabular form has a default value (not LOV but default value) the validation is not working, GIGO....
    Any expert please explain is this suppose how Apex work? or do we need to handle those default value.
    I try to debug the page with good one and bad one, I think I still have a lot to learn I don't understand the debug message. I guess is something about Branching....
    Siere

    Hi,
    Unfortunately there isn't really much that could be done to work around this issue in 4.0.x. The validation logic treats these new rows as not having been touched by the user, hence they are ignored. But the DML (update/insert) logic thinks the data did change due to that default value, and thus attempts an insert for the new row. There might be a way to trick APEX into doing the right thing with some JavaScript, but I would advice against that, considering that this might break after a future upgrade.
    Regards,
    Marc

  • Bug or feature: Finder's sidebar and shared drives

    I don't know if this is a bug or an incomplete feature.
    I have a Windows fileserver on the network. In Finder if I go to afp://<ipaddress> and authenticate with name and password I get a window with the list of available Apple shares. So far so good, just like Tiger. When I choose ONE drive I want, however, the Finder sidebar does not show the drive but shows the server itself and clicking the servername shows ALL available shares. I can click anyone I want and view the contents.
    If the Go To process didn't ask for which drive I wanted to connect to, that'd be great since the sidebar display them all anyways.
    It's a bit odd though. In list view there's no triangles to expand the folders, and it seems odd that the Go To process asks which drive to connect to but then give you all of them anyways. But I certainly like not having to choose which drives I want to connect to.
    Bug or feature? I'm rooting for feature.

    supersolenoid wrote:
    I've recently noticed some very strange behavior when I use exposé with windows minimized and applications hidden.
    When applications are hidden, their windows do not appear in exposé, which seems reasonable.
    But windows that were minimized before hiding the application continue to appear in exposé even while they are not shown in the dock.
    Is this normal behavior? It's irking the **** out of me.
    yes, it's normal behavior. minimized windows show up in exposé but are smaller than non minimized windows. Personally, I like it that way. and when you choose the option to minimize to the application this is the easiest way to unminimize them. but if you are not happy with this you can send apple feedback on the issue
    http://www.apple.com/feedback/macosx.html

  • BUG or Feature?   Width & Height in Top Bar only in %, not in Pixel no Chance to change this

    Hello
    --- First: Please, im very sorry for my bad spelling - english is not my native language! Hope u can understand, what i mean. If it sounds bad or yelling someone - its not my intention! ---
    My Question:
    If i do Strg+T with a layer (ie. image or shape) in previous version you have the width & height in top bar and can easily read it or change when typing a new value in. With right mouse (Win) you can change % in px or em etc.
    In my Photoshop CC 14.2 i have only % and cant change this.
    If i try to read the dimension i can only see it on the info-panel.
    Its confusing. Is it a Bug or Feature?
    MJ

    anyone?
    .... alone ....

  • Bug or feature? -- Unconditional branch using "Go To Page &P12_PREV_PAGE."

    I have used unconditional branch "Go To Page &P12_PREV_PAGE." successfully for updating a table record page and then returing to the previous page stored in the P12_PREV_PAGE item.
    But the same approach failed when I deleted a table record page. Although the P12_PREV_ITEM item stored the correct page number, after deletion the returned page was always Page 0.
    Is this a bug or feature?

    I tried to use application item like F36035_PREV_PAGE instead of page item P12_PREV_PAGE.
    The problem was solved.

  • Bug or feature limitation: can't pin header on Phone version of site

    Hi,
    Check out this file. Look at it in phone view. Preview and note that I can't pin the header/nav.
    Bug or feature limitation?
    Dropbox - MicrositeRedesign04.muse.zip
    Dave

    It isn't a bug. It is a limitation of mobile browsers. Pinning isn't supported by mobile devices.
    However you are in luck as Muse has built in another way to do it. Use the scroll effects instead and set the values to 0 which essentially does the same thing as pinning.

  • Bug or Feature in 1.5.0?

    Bug or Feature in 1.5.0?
    My exsisting code behaves different in 1.4.x. and 1.5.0 Runtime environment.
    I have roughtly the following code:
    import java.util.*;
    // any java.sql.* is NOT importet
      Activitylog al = whatever... // init
      Date lastInvDate = al.getDate();
      Date invDate     = invoice.getInvoiceDate();
      if(lastInvDate.compareTo(invDate) < 0) {  // <- Exception hereException in thread "Thread-50" java.lang.ClassCastException: java.sql.Date
         at java.sql.Timestamp.compareTo(Unknown Source)
         at ***********.validateCancelledAccount(ValidateInvoice.java:1195)
    al.getDate() Sourcecode in Activitylog: public java.util.Date getDate() {
    but initial the Date inside Activitylog was created by
    java.sql.Resultset rs = whatever... // init
    Date date = rs.getTimestamp(3);With 1.4.X the Code works as i expected.
    lastInvDate.compareTo(invDate) < 0is calling java.util.Date.compareTo(java.util.Date)
    but with 1.5.0_04
    lastInvDate.compareTo(invDate) < 0 is calling java.sql.Timestamp.compareTo(java.sql.Timestamp) and leads
    to the ClassCastException
    Is it a bug or a feature of 1.5.0?

    Well it looks like your exact problem is listed on that incompatibility list:
    JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
    aTimeStamp.compareTo(aDate) //NO LONGER WORKS
    This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
    For more information, see bug 5103041.
    Michael Bishop

  • Bug or feature?. Can`t input symbol in inputfield in webdynpro screen.

    Hi all.
    Sometimes in EP after open webdynpro sreen inputfield available for input (focused field is yellow), BUT cursor is not visible in field and i can`t write text.
    I try open screen without EP and can`t view this bug.
    Maybe couse in EP?
    SAP Netweaver 701 SP05

    a quick hack around the not-taking-null text might be an adapter property which does nothing but return an empty String if its value is null
    public class NullStringAdapter extends StringProperty {
         * @inherited <p>
        @Override
        public String get() {
            String value = super.get();
            return value != null ? value : "";
    // usage
    StringProperty adapter = new NullStringProperty();
    adapter.bindBidirectional(myRealProperty);
    textBox.rawTextProperty().bindBidirectional(adapter);not completely tested, got side-tracked by a quick test not working at all (see Bug or feature: "weak" bidirectional binding? Nasty: looks like the adapter has to be a field somewhere instead of a local member - otherwise the binding simply vanishes ...
    Cheers
    Jeanette

  • Bug or feature: "weak" bidirectional binding?

    Just lost my last not-gray hair while quick-testing notification behaviour, the guts being binding a local (to the init method) property to the rawTextProperty of a textBox
    * Created on 06.07.2011
    package bug;
    import javafx.application.Application;
    import javafx.beans.property.StringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.stage.Stage;
    // bind rawTextProperty
    public class TextRawTextBind2 extends Application {
        public static void main(String[] args) {
          Application.launch(args);
        private HBox createParent() {
            TextBox modelInput = new TextBox();
            StringProperty property = new StringProperty("some text");
            ChangeListener l = new ChangeListener() {
                @Override
                public void changed(ObservableValue arg0, Object arg1, Object arg2) {
                    System.out.println("from adapter: " + arg1 + arg2
                            + arg0.getClass());
            property.addListener(l);
            modelInput.rawTextProperty().bindBidirectional(property);
            HBox hBox = new HBox();
            hBox.getChildren().addAll(modelInput);
            return hBox;
        @Override
        public void start(Stage primaryStage) throws Exception {
            HBox hBox = createParent();
            Scene scene = new Scene(hBox);
            primaryStage.setScene(scene);
            primaryStage.setVisible(true);
      }when typing into the textBox, I expect the listener to be notified - but nothing happens. Inline the createParent into the start method - the listener gets notified as expected (for your convenience, added that as well below).
    So what's the difference? The only thingy I can think of (after a whole afternoon of extensive testing of my code as well as textBox .. ) might be listener management in the binding: if the bound property is kept by a weak reference, then it might get garbage collected on method exit. Don't know though, never really cared much about weak references ...
    Comments please?
    Cheers
    Jeanette
    here's the same as all-in-one
    * Created on 06.07.2011
    package bug;
    import javafx.application.Application;
    import javafx.beans.property.StringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.stage.Stage;
    // bind rawTextProperty
    public class TextRawTextBind extends Application {
        public static void main(String[] args) {
          Application.launch(args);
        @Override
        public void start(Stage primaryStage) throws Exception {
          TextBox modelInput = new TextBox();
          StringProperty property = new StringProperty("some text");
          ChangeListener l = new ChangeListener() {
              @Override
              public void changed(ObservableValue arg0, Object arg1, Object arg2) {
                  System.out.println("from adapter: " + arg1 + arg2 + arg0.getClass()
          property.addListener(l);
          modelInput.rawTextProperty().bindBidirectional(property);
          HBox hBox = new HBox();
          hBox.getChildren().addAll(modelInput);
          Scene scene = new Scene(hBox);
          primaryStage.setScene(scene);
          primaryStage.setVisible(true);
      }

    reason for wanting such a loose hanging property is
    Bug or feature: TextBox can't handle null text
    textBox can't cope with null text (which is a valid value in the domain) so need to adapt somehow withouth being interested in the adapter at all, so keeping it around as a field is ... polluting code

  • Swing locks up during event handling of a simple button... bug or feature?

    I have the following code:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JToolBar;
    import javax.swing.SwingUtilities;
    public class Test extends JFrame {
         private static final long serialVersionUID = 1L;
         private JButton button;
         public static void main(String[] args)
              SwingUtilities.invokeLater(new Runnable(){public void run(){new Test();}});
         public Test()
              setSize(200,00);
              setLayout(new BorderLayout());
              JToolBar toolbar = new JToolBar();
              button = new JButton("button");
              button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { button.setEnabled(false);}});
              toolbar.add(button);
              getContentPane().add(toolbar, BorderLayout.SOUTH);
              JPanel panel = new JPanel();
              panel.setPreferredSize(new Dimension(200,10000));
              for(int i=0;i<10000; i++) { panel.add(new JLabel(""+(Math.random()*1000))); }
              JScrollPane scrollpane = new JScrollPane();
              scrollpane.getViewport().add(panel);
              scrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
              scrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              scrollpane.setPreferredSize(getSize());
              scrollpane.setSize(getSize());
              getContentPane().add(scrollpane, BorderLayout.CENTER);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLocationRelativeTo(null);
              setVisible(true);
              pack();
    }This code is lethal to swing: when pressing the button, for no identifiable reason the entire UI will lock up, even though all the event handler is doing is setting the button's "enabled" property to false. The more content is located in the panel, the longer this locking takes (set -Xmx1024M and the label loop to 1000000 items, then enjoy timing how long it takes swing to realise that all it has to do is disable the button...)
    Does anyone here know of how to bypass this behaviour (and if so, how?), or is it something disastrous that cannot be coded around because it's inherent Swing behaviour?
    I tried putting the setEnabled(false) call in a WorkerThread... that does nothing. It feels very much like somehow all components are locked, while the entire UI is revalidated, but timing revalidation shows that the panel revalidates in less than 50ms, after which Swing's stalled for no reason that I can identify.
    Bug? Feature?
    how do I make it stop doing this =(
    - Mike

    However, if you replace "setEnabled(false)" with "setForeground(Color.red)") the change is instant,I added a second button to the toolbar and invoked setEnabled(true) on the first button and the change is instant as well. I was just looking at the Component code to see the difference between the two. There are a couple of differences:
        public void setEnabled(boolean b) {
            enable(b);
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void enable() {
            if (!enabled) {
                synchronized (getTreeLock()) {
                    enabled = true;
                    ComponentPeer peer = this.peer;
                    if (peer != null) {
                        peer.enable();
                        if (visible) {
                            updateCursorImmediately();
                if (accessibleContext != null) {
                    accessibleContext.firePropertyChange(
                        AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
                        null, AccessibleState.ENABLED);
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void enable(boolean b) {
            if (b) {
                enable();
            } else {
                disable();
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void disable() {
            if (enabled) {
                KeyboardFocusManager.clearMostRecentFocusOwner(this);
                synchronized (getTreeLock()) {
                    enabled = false;
                    if (isFocusOwner()) {
                        // Don't clear the global focus owner. If transferFocus
                        // fails, we want the focus to stay on the disabled
                        // Component so that keyboard traversal, et. al. still
                        // makes sense to the user.
                        autoTransferFocus(false);
                    ComponentPeer peer = this.peer;
                    if (peer != null) {
                        peer.disable();
                        if (visible) {
                            updateCursorImmediately();
                if (accessibleContext != null) {
                    accessibleContext.firePropertyChange(
                        AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
                        null, AccessibleState.ENABLED);
        }The main difference appears to be with the KeyboardFocusManager. So instead of using a toolbar, I changed it to a JPanel (so the buttons are focusable). I then notice the same lag when I try to tab between the two buttons. So the problem is with the focus manager, not the setEnabled() method.

  • Xmonad with dual screen strange bug or feature !

    Hi,
    I am running xmonad with dual screen. The strange thing (bug or feature) I noticed that when I move a window to another screen and then try to change the workspace, the window moves along to the same workspace but lands on the other screen.
    Is there any way to switch off this feature. I googled a bit and replaced the greedyView parameter with view but it didn't help.
    regards,
    Hardik

    Here is my  xmonad.hs
    import XMonad
    import System.Exit
    import qualified XMonad.StackSet as W
    import qualified Data.Map as M
    import XMonad.Util.Run
    import XMonad.Hooks.DynamicLog
    import XMonad.Hooks.ManageDocks
    import XMonad.Layout.NoBorders
    import XMonad.Hooks.SetWMName
    import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat, doCenterFloat)
    import XMonad.Layout.Tabbed
    import System.IO
    -- -xos4-terminus-medium-r-*-*-14-*-*-*-*-*-*-*
    myLauncher :: String
    myLauncher = "`dmenu_path | dmenu -fn '-xos4-terminus-medium-r-*-*-14-*-*-*-*-*-*-*' -nb '#303030' -nf '#959595' -sf '#FFFFFF' -sb '#606060'`"
    myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
    [ ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)
    , ((modMask, xK_p ), spawn myLauncher)
    , ((modMask .|. shiftMask, xK_c ), kill)
    , ((mod4Mask .|. controlMask, xK_Down ), spawn "/home/hardik/bin/decrease-aumix-vol.sh")
    , ((0 , 0x1008ff11 ), spawn "/home/hardik/bin/decrease-aumix-vol.sh")
    , ((mod4Mask .|. controlMask, xK_Up ), spawn "/home/hardik/bin/increase-aumix-vol.sh")
    , ((0 , 0x1008ff13 ), spawn "/home/hardik/bin/increase-aumix-vol.sh")
    , ((mod4Mask .|. controlMask, xK_m ), spawn "/home/hardik/bin/toggle-aumix-mute.sh")
    , ((0 , 0x1008ff12 ), spawn "/home/hardik/bin/toggle-aumix-mute.sh")
    , ((modMask, xK_space ), sendMessage NextLayout)
    , ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
    , ((modMask, xK_n ), refresh)
    , ((modMask, xK_Tab ), windows W.focusDown)
    , ((modMask, xK_j ), windows W.focusDown)
    , ((modMask, xK_k ), windows W.focusUp )
    , ((modMask, xK_m ), windows W.focusMaster )
    , ((modMask, xK_Return), windows W.swapMaster)
    , ((modMask .|. shiftMask, xK_j ), windows W.swapDown )
    , ((modMask .|. shiftMask, xK_k ), windows W.swapUp ) , ((modMask, xK_h ), sendMessage Shrink) , ((modMask, xK_l ), sendMessage Expand)
    , ((modMask, xK_t ), withFocused $ windows . W.sink)
    , ((modMask , xK_comma ), sendMessage (IncMasterN 1))
    , ((modMask , xK_period), sendMessage (IncMasterN (-1)))
    , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
    -- , ((modMask , xK_q ), restart "xmonad" True)
    , ((modMask , xK_q ), spawn "killall conky dzen2 && xmonad --recompile && xmonad --restart")
    , ((modMask .|.shiftMask .|. controlMask , xK_c ), spawn "emacs ~/.xmonad/xmonad.hs")
    , ((modMask .|. controlMask , xK_l ), spawn "xscreensaver-command -lock")
    , ((modMask .|. controlMask , xK_k ), spawn "python ~/pythonScripts/SwitchKbLayoutDesk/src/setNextKbLayout.py")
    , ((modMask , xK_b ), sendMessage ToggleStruts)
    ++
    [((m .|. controlMask, k), windows $ f i)
    | (i, k) <- zip (XMonad.workspaces conf) [xK_F1 .. xK_F4]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
    -- , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
    ++
    -- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
    -- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
    [((m .|. modMask, key), screenWorkspace sc >>= flip whenJust (windows . f))
    | (key, sc) <- zip [xK_w, xK_e] [0..]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
    myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
    [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
    , ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
    , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
    myLayouts = tiled ||| Mirror tiled ||| noBorders Full ||| simpleTabbedBottom
    where
    tiled = Tall 1 (2/100) (1/2)
    myManageHook = composeAll
    [ className =? "MPlayer" --> doFloat
    , className =? "Gimp" --> doFloat
    , className =? "Gimp" --> doFloat
    , className =? "IDEA" --> doFloat
    , resource =? "desktop_window" --> doIgnore
    , isFullscreen --> doFullFloat ]
    myStartupHook :: X ()
    myStartupHook = do
    setWMName "LG3D"
    spawn "xset -b"
    spawn "xrdb -load ~/.Xdafaults"
    spawn "xscreensaver -no-splash"
    spawn "numlockx on"
    spawn "eval `cat $HOME/.fehbg`"
    spawn "conky -c ~/.conkyrc_dzen | dzen2 -ta r -x 600 -bg '#303030' -fn '-*-lucida-*-*-normal-*-12-*-*-*-*-*-*-*' &"
    spawn "conky &"
    -- spawn "conky -c ~/.conkyrc_time &"
    shortened :: Int -> String -> String
    shortened n xs | length xs < n = xs
    | otherwise = (take ( n - length end) xs) ++ end
    where
    end = "..."
    main = do
    h <- spawnPipe "dzen2 -w 600 -ta l -fn ' -*-lucida-*-*-normal-*-12-*-*-*-*-*-*-*' -bg '#303030' -fg '#FFFFFF'"
    xmonad $ defaultConfig {
    terminal = "urxvt",
    focusFollowsMouse = True,
    borderWidth = 1,
    modMask = mod1Mask,
    workspaces = [" console "," dev "," misc "," browser "],
    normalBorderColor = "#303030",
    focusedBorderColor = "#55BBFF",
    keys = myKeys,
    mouseBindings = myMouseBindings,
    layoutHook = avoidStruts $ smartBorders myLayouts,
    manageHook = myManageHook <+> manageDocks,
    startupHook = myStartupHook,
    logHook = dynamicLogWithPP $ defaultPP {
    ppCurrent = wrap "^fg(#FFFFFF)^bg(#606060)" "^fg()^bg()"
    ,ppVisible = wrap "^fg(#FFFFFF)^bg()" "^fg()^bg()"
    ,ppHidden = wrap "^fg(#55BBFF)^bg()" "^fg()^bg()"
    ,ppHiddenNoWindows = wrap "^fg(#808080)^bg()" "^fg()^bg()"
    ,ppUrgent = wrap "^fg(#FF0000)^bg()" "^fg()^bg()"
    ,ppTitle = \x -> if null x
    then ""
    else "< ^fg(#FFFFFF)^bg()" ++ shortened 23 x ++ "^fg()^bg() >"
    ,ppLayout = \x -> "^fg(#FFBB00)^bg()"
    ++ case x of
    "Tall" -> "Tiled"
    "Full" -> "Full"
    "Mirror Tall" -> "Tiled Bottom"
    "Tabbed Bottom Simplest" -> "Tabbed"
    _ -> x
    ++ "^fg()^bg()"
    ,ppSep = " "
    ,ppWsSep = ""
    ,ppOutput = hPutStrLn h
    Last edited by rangalo (2010-04-22 14:52:13)

Maybe you are looking for

  • Gif imagen dosen't work at o.s 6.0

    The gif imagen in profile bbmsn contactas dosen't work in my torch 9800 os 6.0 all my friends that have got the os 6.0 have goy the same proble, i wanna know if there are or when is coming a update to solution this problem

  • Work order user and system ststus

    Hi all, In plant maintenance work order(iw31) system and user status have to display as a report. I want to know table and field name for that below status. Please guide me. CRTD - created PAPL - PLAN - planned APP - approved REL - realeased TECO - T

  • Severe screen damage on a 30" ACD

    A very sad day indeed: Last night a framed picture fell off the wall and hit the screen of my 30" ACD in 2 parts leaving profound scratches in both places. One is so deep that background light leaks awfully through it, the other doesn't present light

  • Can't hear sounds.

    Help! This one's weird! I'm new to Logic Express, but have been MIDI sequencing in Windows running Cakewalk for about 12 years, so not complete newbie. At the moment, due to building in my house, I can only use LE through the built in speaker, so tho

  • Can't find button to accept license agreement

    Just downloaded reader 9.0. When I tried to use it, the license agreement poped up and it says to press the accept button to continue BUT there is no accept button anywhere on the page, so what do I do?