OS/2: Choice box not painted

I am obliged to develop an applet for JDK 1.1.7 running on Netscape 4.x on OS/2. I have a strange problem where a Choice component does not display on OS/2 (its paint method never gets called), while the same code works just fine on Windows under either Netscape or IE.
I am implementing a simplified version of JTable that displays data in tabular form and may contain a single editor field to edit the currently selected cell. The table class sets its layout to null and positions its single component using Component.setBounds(). The component is positioned in the table at the location of the currently selected table cell. When the editor component is a java.awt.TextField, it displays just fine. When the editor is a java.awt.Choice, it does not get painted.
Obviously, since I haven't posted any source code, I don't expect someone to tell me exactly where my problem is. I'm just looking for people to think back to their OS/2 development days (hah!) and see if they remember any gotchas related to Choice components. The funny part is that this Applet uses Choice components successfully elsewhere.
This appears to me to be a bug in the OS/2 VM. I have already encountered legions of other incompatibilities between Java running on OS/2 and on other operating systems.

Well, I've sort of answered my own question.
The picture is slightly more complicated than I described in my original post. The editor component for the table is contained in its own small Panel, the exact dimensions of the table cell. The Choice box fails to paint if the small panel's layout manager (1) forcibly changes the Choice's dimensions to be smaller than it prefers, or (2) lays out the Choice such that its dropdown button would not be visible due to cropping on the right side of the component. Thus, the Choice displays if the Panel's layout is Border, and the Choice occupies the EAST area, but not if it occupies the CENTER or WEST area. If I set the Panel's layout to null and manually position the Choice to (0, 0) and set its bounds to the size of the cell, it doesn't paint.
This sucks because visually it won't work to truncate the left side of a Choice box, and I can't shrink it without it disappearing, so that puts my table layout at the mercy of whatever strings are contained in the Choice list. I read those from a database.
At this point I am strongly considering writing my own Choice component.
Let me just take this opportunity to fart in the general direction of the people who developed the Java runtime for Netscape on OS/2.

Similar Messages

  • Firefox will not start in normal (hour glass for a second) or in safe mode (closes after choice box).

    Firefox will not start in normal (hour glass for a second) or in safe mode (closes after choice box).
    I tried all of the following with no success:
    - uninstalling and reinstalling mozilla with no success.
    - End all firefox.exe from the task manager and then open again the firefox from quick launch or desktop or program files folder.
    - Change the firefox.exe name to firefox2.exe
    - Start in safe mode and choose several alternatives after choice box, but nothing happen.
    Please help.

    What is your computer system, and what Firefox are you using?
    Start your '''Computer''' in safe mode. Then start Firefox. Try '''Safe''' web sites.
    '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]'''

  • In iphoto how to get the gold you delete a photo warning message when you check the box not ask

    in iphoto how to get the gold you delete a photo warning message when you check the box not ask

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • Firefox does not paint the window if Windows 7 Basic theme is selected and Fujitsu USB port replicator PR07 is used

    If I use "Windows 7 Basic" theme on my laptop (Fujitsu Lifebook A532), the Firefox window is not painted.
    I see only the border of the window, the content not. As soon as I switch back to the "Windows 7" theme,
    it works again.
    It could be related to the graphics driver (from Intel) of my new laptop.
    Before I had a desktop computer, and did not have this problem.
    Update: the problem occurs only if I use my port replicator (Fujitsu USB Port Replicator PR07).
    If I unplug the replicator, and use only the monitor of my laptop, everything is fine.

    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''Please create a screenshot of the problem you're seeing by following the guide mentioned at [[How do I create a screenshot of my problem?]].
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.

  • Fire a function from a Choice Box selection

    I can't seem to figure out where to place code to create an event when the user selects a choice from a Choice Box:
    def theChoice = ChoiceBox {
         items: ['one', 'two''],
    function MySelect(){
    if(theChoice.selectedIndex == 1){
    println("test...");
    As far as I can tell, the Choice Box control has no "action" variable (like a Button object) so I'm not sure how to like an event to a selection....
    thanks

    Lol, you beat me by a few minutes! :-D
    To be more precise, Button has no state we can override to detect the action, hence the specific callback. While ChoiceBox has several states (selectedIndex, selectedItem) and can have others in the future (eg. in an editable choice box).

  • Dialog box "not enough stoage" appeared on

    dialog box "not enough stoage" appeared on iPad; this iPad cannot be backed up because there is not enough iCloud storage available.  You can manage your storage in settings...my choices are "close" and "settings"...neither works...help?!

    Reset it by holding the power and home buttons at the same time until you see the Apple logo, then release.  Then use this guide to manage and free up storage space in your account: http://support.apple.com/kb/ht4847.

  • Choice box flicker on Linux?

    Hi,
    We have started using the preview MenuButton control as well as the ChoiceBox. Unfortunately, both of them suffer from flicker problems on Linux OS. The moment you move from one menu item to the other, the whole menu redraws which causes a bad flicker. This however does not happen on Windows.
    Any suggestions on how to overcome this flicker? Our target runtime is Linux and we have hit a block!
    Thanks,
    Dhruva Ray

    Thanks Jonathan...Good to get a prompt response from you! I will file in the bug. Some more investigations to help you reproduce the problem
    The bug is pronounced if you add more items in the choicebox. Around 5-6 strings in the choicebox should be good enough to see the flicker clearly. If you move the mouse up and down over the various items, you can see the flicker clearly.
    My Machine config:
    1. Ubuntu 10.04. It appears with earlier versions of Ubuntu as well
    2. Windowing manager : GNOME with compiz
    3. Set System->Preferences->Appearance->Visual Effects->Normal
    To avoid the background white rectangle below the choicebox.(or menus) [See  [http://blogs.sun.com/tor/entry/transparent_windows_on_linux] ], I needed to do 2 things
    -Set Visual Effects (step 3) as described earlier
    -Set stage transparency to true ( "javafx.allowTransparentStage")
    So the resultant snippet is
    Snippet 1
    java.lang.System.setProperty( "javafx.allowTransparentStage",  "true" );
    Stage {
        title: "Application title"
        scene: Scene {
            width: 250
            height: 80
            content: [
                ChoiceBox{
                    items: ["1","2", "3","4","5", "6"]
    }To get some more info about what is hapenning beneath the scenes, I ran the program with -Dsun.java2d.trace=log set
    This gave the following output in the console when I move the mouse over the items in the choicebox
    sun.java2d.loops.Blit::Blit(IntRgb, SrcNoEa, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntArgbPre)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntArgbPre)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntArgbPre)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntArgbPre)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntArgbPre)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntArgbPre)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntArgbPre)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntArgbPre)Now I ran the same code snippet with with -Dsun.java2d.trace=log set but did NOT set the javafx.allowTransparentStage property. In this case the white rectangle comes behind the choicebox :( (And hence we cannot NOT go with approach), but there is NO flicker when I move my mouse over the choice box items
    The dump in this case was
    sun.java2d.loops.Blit::Blit(IntRgb, SrcNoEa, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
    sun.java2d.loops.DrawGlyphListAA::DrawGlyphListAA(AnyColor, SrcNoEa, IntRgb)
    sun.java2d.loops.Blit::Blit(IntRgb, SrcNoEa, IntRgb)It appears from the dump that there is an sandwiching Blit operation when there is no flicker. Does this give any clue? Or am I barking up the wrong tree?
    Thanks
    Dhruva Ray

  • Choice Box

    How do I make to populate choice box in the JavaFX Scene Builder? I have that to make a class or is there another way?
    Thanks!

    Hi,
    1. In SceneBuilder, add a unique fx:id to your ChoiceBox object - this fx:id should be the name of a private variable in your controller's class.
    <AnchorPane id="AnchorPane" ... xmlns:fx="http://javafx.com/fxml" fx:controller="myexample.MyController">
    <children>
    <ChoiceBox fx:id="myChoiceBox" layoutX="257.0" layoutY="190.0"/>
    </children>
    </AnchorPane>
    2. In your controller's initialize method, initialize the content of your choice box.
    package myexample;
    import ...
    public class MyController implements Initializable {
    @FXML // fx:id="myChoices"
    private ChoiceBox<?> myChoices; // Value injected by FXMLLoader
    @Override // This method is called by the FXMLLoader when initialization is complete
    public void initialize(URL fxmlFileLocation, ResourceBundle resources) {
    assert myChoices != null : "fx:id=\"myChoices\" was not injected: check your FXML file 'foo.fxml'.";
    // initialize your logic here: all @FXML variables will have been injected
    // => you can add items to "myChoices" here:
    myChoices.setItems(FXCollections.observableArrayList());
    myChoices.getItems().add(...);
    }

  • Choice box into FXML

    Hello,
    How to add a choice box into an FXML in x and y coordinates.
    I tried some examples in this formu but it does not work.
    Thank you

    Here is a tested, working example:
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <VBox xmlns:fx="http://javafx.com/fxml">
        <children>
            <ChoiceBox layoutX="396" layoutY="66" prefWidth="61" prefHeight="24" maxWidth="23">
                <items>
                    <FXCollections fx:factory="observableArrayList">
                        <String fx:value="/2"/>
                        <String fx:value="/3"/>
                        <String fx:value="/4"/>
                    </FXCollections>
                </items>
            </ChoiceBox>
        </children>
    </VBox>If you are using the JavaFX 2.1 beta, you can use this simpler version:
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <VBox xmlns:fx="http://javafx.com/fxml">
        <ChoiceBox layoutX="396" layoutY="66" prefWidth="61" prefHeight="24" maxWidth="23">
            <String fx:value="/2"/>
            <String fx:value="/3"/>
            <String fx:value="/4"/>
        </ChoiceBox>
    </VBox>

  • Captivate 4 AS2 Text Entry Box not working with Flash Player 11

    I am having issues with text entry boxes not working at all in flash 11. I am using Captivate 4 and exporting an AS2 swf. When you get to the slide you can type but you cannot see anything nor does the button or keystroke to move on. Also there is no cursor. Any ideas?

    You said it is not working with Flash 11, so does that mean you tested with previous version and that worked?
    While publishing choose Flash player as 9 and publish that, verify if that plays in a compatible web browser.
    AS 2 is a legacy scripting, it has been said not too be supported with even Flash Player 10 --
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=Part2_AS2_LangRef_1.html
    I believe if you switch back to version 9 while publish your project, it should work.
    Thanks,
    Anjaneai

  • Reg: Drop-Down list Box not  displaying values

    Hi Experts,
                     i am publishing a module pool program in the internet using SICF Transaction . In the internet my drop down list box is not displaying the default value  but in my sap it works fine .
    What may be the problem?
    Regards,
    Vikram

    Hello Thorsten Domsalla ,
                      My Problem is in my sap module pool program there is a drop down list box which disaplays  default values its working fine in sap gui but when i access through internet (SICF) Transaction the Drop down list box not listing out default values .
    i am using Integrated ITS Version 7.0 and Support package 08.
    Regards,
    Vikram

  • How to match the width of the choice box's dropdown to the choice box

    Hi there,
    I'm using a ChoiceBox control. The choice box seems to be composed of two parts: the box(displaying the current selection) and a context menu(dropdown). What I find strange is that the dropdown of the choice box(the context menu) has different size than the choice box by default:
    http://manvox.com/javafx1.3/choice-box-dropdown.jpeg
    I can style the choiceBox's box element by modifying the +.choice-box+ CSS selector. I can also style the dropdown using the +.context-menu+ and +.menu-item+ selectors.
    How can I ensure that the dropdown has the same size of it's parent choice box and is aligned to it?

    @alabala: Please, if you can spare a few minutes, can you file a bug report for this at the JavaFX Jira issue tracker here: http://javafx-jira.kenai.com
    If you set the 'project' to 'runtime', and 'component' to controls, it'll end up on my desk and I'll get the owner of the ChoiceBox control to take a look at it.
    Thanks,
    -- Jonathan

  • When I click the iCloud button I get a browser with check boxes, not slider buttons and it does not have a "backup and storage" button.  So I cannot set up backup.

    When I open my iCloud browser it looks different than "normal." It shows the list with check boxes, not slider on-off buttons.  It dos not show a "storage and backup" button so I cannot set up my backup. What is wrong?

    If see something like the image below it's because you are looking at the iCloud settings on your Mac, not on an iOS device (which has sliders).  Storage & Backup isn't in the Mac settings because you cannot back up your Mac to iCloud.  Only iOS devices can back up to iCloud.  On a Mac, you can get information about your iCloud account storage by looking at the green usage bar at the bottom and by clicking the "Manage..." button on the bottom right.

  • Bought a Mac Mini.  at 18 day's old it started to lock up and not function.  Took it in and they wiped and reinstalled it.  Well at 24 day's old it's been sitting in the box not being used.  First and last Mac for me. But can I get something for the junk?

    I have pulled it out of the box and put 2 Mac approved mem sticks in it to boost it to 8 Gigs mem and it still locks up and freazes..  So many people told me Mac was the way to go...  1500 dollers could have bought me a great pc laptop.  Now I have a wirless mouse keyboard and a mac mini (aka Brick) that allowed me to donate money to a cause that is helping buildings and companies out side of the US.  While I have junk..  It's still under warranty and I reinstalled the os after the new mem sticks.  Again.. locks up and does nothing.  What can I do with this?  Toss it in the trash?  Any info on what I might do with it.. Please help!

    It would be most helpful if you updated your system information:
    Please reconcile the following
    at 18 day's old it started to lock up and not function. Took it in and they wiped and reinstalled it. Well at 24 day's old it's been sitting in the box not being used.
    ... I reinstalled the os after the new mem sticks.
    If your Mini is anything less than six months old it would be running Lion, not 10.6.1, nor would it have been necessary to "reinstall the OS". Any help that anyone can provide is predicated on your system configuration so it's important.
    If you are running Lion then boot your Mini while holding the D key. This will load Apple Hardware Test which will enable you to test your memory. "Mac approved" memory is sort of vague, and even memory that is allegedly designed to meet your Mini's specification may fail. There few reputable memory vendors.
    "Apple installed" memory is more meaningful, and indicates Apple has tested it and guarantees its function. Otherwise all bets are off with a claim of "Mac approved". You will have to verify that yourself with Apple Hardware Test.
    If your Mini was running, or ever ran OS 10.6.1 for that matter, it is close to three years old.
    You must clear up these uncertainties before anyone can help.

  • The "Adobe PDF" menu choice does not appear on Excel Menu

    I've installed Acrobat 9.1.2 and the "Adobe PDF" menu choice does not appear on the Excel 2000 Menu.  I have uninstalled and reinstalled the Microsoft Office option in PDF Maker with no change.  It does appear on the Word 2000 Menu.  Adobe 8.1.3 shows on all apps of Microsoft 2000 (on different computers.)

    According to Version Compatibility of Acrobat PDFMakers Office 2000 is not suupported by Acrobat 9.

Maybe you are looking for