Multiple Linux JComboBox drops in the same position

Following program create two similar JComboBox dropdown, and in Linux, when it runs, it works weirdly.
If I first click first dropdown (s1), then later when I click second one (s2), dropdown part still appears under the first component.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class JBugClass {
     public static void main(String[] args) {
          JFrame frame = new JFrame("BugClass AWT version");
          Container pane = frame.getContentPane();
          String[] items = { "Item 1", "Item 2", "Item 3" };
          JComboBox s1 = new JComboBox(items);
          JComboBox s2 = new JComboBox(items);
          JButton wx = new JButton("QUIT");
          wx.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent ae) {
                    System.exit(0);
          pane.setLayout(new FlowLayout(FlowLayout.LEFT));
          pane.add(s1);
          pane.add(s2);
          pane.add(wx);
          frame.pack();
          frame.setVisible(true);
}I created separated string arrays for s1 and s2, but position is still incorrect. It works completely fine in Windows. I am now suspecting that this is a bug of Linux J2SE1.4.0. Does anyone know any workaround?

All of the features you're asking for are very easy to add and control in LabVIEW once you know what you're looking for. To show the Front Panel of a SubVI, open the VI and navigate to its "Customize Window Appearance" window (this is in File>VI Properties, select Category: Window Appearance, then click "Customize"). Check the "Show Front Panel when called" checkbox.
However, there are quite a few other properties you'll likely want to edit as well, so it would be best to review the LabVIEW Topic: "Customize Window Appearance Dialog Box".
In your main VI, put the SubVI in the True case of a Case Structure, then connect your button to the selector terminal. The more complex behavior your asking for can be achieved using multiple case structures.
Matt Kirk
Inventor of ImageJVI

Similar Messages

  • Check on Multiple entries in the same positions

    Hullo all!
    Can anyone pls tell me as to how can i keep a check on multiple entries (i.e.persons) occupying the same position?
    i mean that if a position is 100% staffed, then there should be an error popped up when another personnel no. is being assigned to the same position.
    And if the position is staffed 60%, then another personnel no. should be accepted on the same position only if the staffing percentage is allotted as 40%.
    is this an ABAP development? and if so, what all tables are to be referred etc? what is the logic?

    Hi ,
    Please download the note from transaction "SNOTE" (Cntrl + F8 / Download SAP Note). I can send you the note if you can share your email id.
    An extract from note for your reference :-
    Number 502182
    Version 0004
    Processor
    Processing Status new
    Implement. Status Cannot be implemented
    Language EN
    Short Text Holder relationship, staffing percentage, working time
    Component PA-OS Organizational Structure
    Long Text
    Symptom
    In Organizational Management, difficulties exist concerning the creation of the staff
    assignments. The interaction of holder relationship, staffing percentage working time
    of the employee and planned working time of the position is not clear.
    Effects on subsequent processes, for example, the integration of Cost Distribution are
    not clear.
    Other terms
    Integration of Cost Distribution, IT1018, IT0027
    Reason and Prerequisites
    Solution
    The following text should explain the interaction of holder relationship, working time
    of the employee, planned working time of the position and the integration of Cost
    Distribution.
    Contents:
    1. The holder relationship
    2. The staffing percentage
    3. The staff assignment from the viewpoint of the position
    4. The working time at the position
    5. The working time of the employee
    6. The relationship characteristics of the holder relationship
    7. Dependent processes (Integration of Cost Distribution)
    =======================================================================
    1. The holder relationship
    Relationship between position and position holder (employee), infotype 1001, subtype
    A008
    Allowed relationships:
    (See system table T777E)
    A Work center A 008 Holder P
    A Work center A 008 Holder US
    BP Business partner B 008 Holder S
    P Person B 008 Holder A
    P Person B 008 Holder S
    S Position A 008 Holder BP
    S Position A 008 Holder P
    S Position A 008 Holder US
    US User B 008 Holder A
    US User B 008 Holder S
    SAP Note Nr. 502182 10/05/2007 Page 1
    Time constraint:
    (See system table T777Z)
    A 1001 Relationships A008 Holder 3
    S 1001 Relationships A008 holder 3
    P 1001 Relationships B008 holder 3
    That means:
    <b>o An employee can be assigned to several positions at the same time.
    o A position can be assigned to several holders at the same time.</b>
    Reward points, if this was helpful.

  • Can multiple libraries be sync to the same iPod?

    As I start upload songs to iTunes library, quite quickly it has increased to 4 GB with the library big enough to use the side scroll bar. I guess we can have multiple libraries in iTunes in the same computer. But can multiple libraries be sync to the same iPod? i.e. Can I see more than one library in the ipod?
    I find it uneasy to see too many entries in the library all the time. There is no way to make it invisible, hence this question.

    If you want to connect and use an iPod with more than one library (or more than one computer) you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:
    Using iPod with Multiple computers
    Managing content manually on iPod
    Syncing Music to iPod
    Using multiple iTunes libraries -Mac
    Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod

  • In windows how do we install and activite multiple versions of tuxedo at the same time ?

    Hi All,
    In windows how do we install and activate multiple versions of tuxedo at the same time ?
    Advance wishes

    You can run different versions of Tuxedo on the same server, as long as they are installed in different directories.
    See PeopleTools 8.53 installation manual Task 3-1: Installing Oracle Tuxedo
    You can install Oracle Tuxedo once for each release on a machine, regardless of the number of PeopleSoft
    applications or databases the server supports. For example, if you are a PeopleSoft 9.1 customer and have
    Oracle Tuxedo 6.5 installed, you may install Oracle Tuxedo 6.5 and Oracle Tuxedo 11gR1 on the same
    machine in separate directories. For example:
    On Windows, you may install into C:\oracle\tuxedo11gR1_VS2010 and C:\tux65.
    On UNIX, you may install into /home/oracle/tuxedo11gR1 and /prod/tuxedo/6.5.
    E-TUX: Can Multiple Versions of Tuxedo Coexist on One Physical UNIX or Linux Server? (Doc ID 607828.1)

  • Multiple Purchase Requisition generate in the same date WHY ?

    Hi All,
    In MD04 Tcode for one Material No , I can see multiple PR getting generated for the same Date !! I would like to know based on what settings same date is appearing ?? and also please tell how to combine all this PR into one PR !!! Please guide me
    Thanks & Regards,
    Vinoth.

    Hi,
    Che on it:-
    Re: Third party Drop Ship
    Re: Single PO for Multiple PR
    Re: MD04 + Auto PR generation
    pherasath

  • "you can not use multiple instance of Program at the same time"

    Hello @ all,
    I have a Problem, after the installing from Acrobat Testversion and acrobat reader in version in "all Combination" 8 an 9.
    I get this misstake information "you can not use multiple instance of Program at the same time" if I want open more then 1 .pdf.
    If I have no pdf open, but acrobat/reader so i can´t open with the same Misstake.
    I have deinstalled and installed, Allways I bekame the same information. I tryed all things to clean and know i don`t know forward.
    Important: by Drag an Drop in the Acrobat Reader it is going, but by direct click on the pdf i get mistake.
    Maybe, you know what I can do!
    Thanks for help!

    Installation of both Acrobat and Reader in the same Windows machine is not advisable. If I were you, I would remove both completely and then reinstall the one you want to keep.

  • Multiple sub vi's in the same block diagram

    Hello,
    I'm brand new to LabVIEW and have been going through examples and trying to get to know the program, but I can't seem to find the right one to show me how to have multiple sub vi's on the same block diagram, but with separate front panels.
    What I'm trying to do is have a sub vi that can be toggled on and off from the front panel and have a second sub vi run and open a new front panel/gui when a second button is pressed on the main front panel. I would also like it if the second button required the first button to be in the off position in order for it to be turned on.
    The goal is to have a continuously updating scale system(First sub vi), but be able to recalibrate when needed(Second sub vi).
    If you could help or just point me in the direction of some relevant examples I would greatly appreciate it.
    Thanks in advance,
    dnorman

    All of the features you're asking for are very easy to add and control in LabVIEW once you know what you're looking for. To show the Front Panel of a SubVI, open the VI and navigate to its "Customize Window Appearance" window (this is in File>VI Properties, select Category: Window Appearance, then click "Customize"). Check the "Show Front Panel when called" checkbox.
    However, there are quite a few other properties you'll likely want to edit as well, so it would be best to review the LabVIEW Topic: "Customize Window Appearance Dialog Box".
    In your main VI, put the SubVI in the True case of a Case Structure, then connect your button to the selector terminal. The more complex behavior your asking for can be achieved using multiple case structures.
    Matt Kirk
    Inventor of ImageJVI

  • How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?

    With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
    Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
    Does anyone have a solution?
    Thanks in advance.

    Thank you very much. I'll be waiting for you message.
    Messaggio originale----
    Da: [email protected]
    Data: 26/01/2015 17.56
    A: "Umberto Gangi"<[email protected]>
    Ogg:  How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        created by Gilad D (try67) in Creating, Editing &amp; Exporting PDFs - View the full discussion
    Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, &amp; "Stop Following"
         Start a new discussion in Creating, Editing &amp; Exporting PDFs by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device?

    i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine

    Itunes content and pics are NOT part of the backup that itunes performs.
    Backing up, updating, and restoring iPad, iPod touch, and iPhone software
    You should transfer any purchases from iphone regularly:  File>Transfer Purchases  , if they fail to be transferred when you sync.
    You buy one and only one download.  It is your responsibility to move/copy/backup your purchases.
    You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
    http://www.apple.com/support/itunes

  • HT4865 How can I have multiple icloud email accounts using the same rescue email account.

    I have several Iphones for my business for managers to use.
    I would like to set them up to send me the recovery emails but it seems only one icloud address can do that.
    Is it possible to have multiple icloud email accounts using the same - seperate recovery email address?

    Unfortunately, you cannot change your primary @me.com or @icloud.com email address, you could however create an alias or create a completely new account.

  • Multiple repeating SubForms binding to the same data node

    Having multiple repeating SubForms binding to the same data node : In our documents, many times we need to display information from same table in multiple locations. For example, if document displays information of Insureds on one page and information of drivers on another page, we need to create a LiveCycle document with two SubForms. Each SubForm needs to have a repeating binding to CommonInsured element in XSD.  LiveCycle Designer is not able to handle such case. We cannot have two subforms bound to the same node, ONLY in a case where repeating option is selected for data binding.
    The only way I have found out is the following Javascript
    //Get the data node from XML. You will find the code for this function in //JavaHelperFunctions library.
    // InsuredDataRepeatingSubForm is a second subform.
    //You need to manually add instances to this subform at the
    //runtime and Insured data to each instance.
    var insuArray = JavaHelperFunctions.getInsureds();
        var i=0;
        for( i=0; i<insuArray.length; i++)
           if (i>0)
    var thesubform = this.InsuredDataRepeatingSubForm.instanceManager.addInstance(i);
                  thesubform.InsuredName.rawValue = insuArray[i].fullName.value;
           else
                   this.InsuredDataRepeatingSubForm.InsuredName.rawValue = insuArray[i].fullName.value;
    Is there any way I can achieve directly using bindings since we are trying to minimize javascript that changes the layout of the form?
    Thanks in advance!

    Unfortunately not. I've spent countless hours/days trying to do the same thing. You have to use code. The form consumes all the data it can into the repeating elements until there is none left and it is not reused.
    Here's a function I wrote just for that purpose. Feel free to use it:
    function loadData(source,target){
    target.setInstances(source.count);//set the target's subform instances to match the source's
    for (var a=0;a<source.count;a++){//loop through each subform instance
      var sourceSubform=source.resolveNode(source.name.substr(1)).all.item(a);
      var targetSubform=target.resolveNode(target.name.substr(1)).all.item(a);
      for (var b=0;b<sourceSubform.nodes.length;b++){//loop through the children of each
       if (sourceSubform.nodes.item(b).className=="field" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching fields
        if (typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData)=="undefined" ||
         typeof(targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.body)=="undefined")
         targetSubform.resolveNode(sourceSubform.nodes.item(b).name).rawValue=sourceSubform.nodes.item(b).rawValue;
        else
         targetSubform.resolveNode(sourceSubform.nodes.item(b).name).value.exData.loadXML(sourceSubform.nodes.item(b).value.exData.saveXML(),1,1);
       if (sourceSubform.nodes.item(b).className=="instanceManager" && targetSubform.resolveNode(sourceSubform.nodes.item(b).name)!=null)//check for matching subforms
        loadData(sourceSubform.nodes.item(b),targetSubform.resolveNode(sourceSubform.nodes.item(b).name));
    Just make sure the source and target subform hierarchies are identifal, same name and all. It will recurse down the tree and transfer source fields (rich text and plain) to their sister targets.
    Kyle

  • Prevent multiple users from editing/approving the same form SPD 2013,SP 2013

    Hello all, I have a workflow with a to do task, the task is assigned to a group so any of the users in that group can go in and do a quality check on form data and approve it.  How do I prevent multiple users from working on the
    same form? do I just require check out? or is there a way to notify the rest of the group that a user has already started the quality check.

    The "Require Checkout" option is your best bet.  You can also enable the auto checkout on edit option to allow minimal effort on the side of the user.  Other users will then get the error message stating the item is checked out, if they try to
    edit it.
    If you'd like, you could add a workflow to the task list that triggers when something is changed.  That workflow can check if the item is checked out and if so, email the other users assigned to the task.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • How to configure multiple listeners to listen for the same instance.

    Hello everyone,
    I am running oracle database 11g and I want information regarding how to configure multiple listeners to listen for the same database instance. Actually I know how to configure more than one listener but the main thing that I am confused about is when we create listener.ora file, do we have to statically register the database instance with both the listeners or the instance will register itself with both the listeners.
    According to my knowledge the instance will register with the listener specified by LOCAL_LISTENER parameter and we cannot have more than one value for this parameter.
    Please only give detailed answers with example as I am tired of simple answers with details that I already know.

    Hello,
    Yes, it can make sense to have several listener for one Oracle instance. For instance you may have one listener for the applications another listener for DBA administration tasks as well as one listener dedicated to dataguard broker. It is not possible to have several listeners listening on the same IP and Port.
    By default the database try to automatically register to a listener on port 1521. To instruct the instance to register to a specifc list of listeners you can add in the init.ora the local_listener parameter with an alias definition:
    i.e
    local_listener=MY_SET_OFF_LISTENERS
    in your tnsname.ora add an entry called:
    MY_SET_OFF_LISTENERS_LOCAL= (ADDRESS_LIST=
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1530))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1531))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1532))
    In this sample your instance will register to three listeners listening on respectively port 1530, 1531 and 1532
    If you want your clients can be balanced over the 3 listeners

  • Can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    Yes, there are even defaults for naming them, such as LivingRoom, Bedroom, etc, or you can even enter your own name with the remote for each AppleTV.

  • How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/iPad?

    How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/ iPad?

    This isn't supported in the current version of Adobe Reader on iPhone/iPad.
    Shradha

Maybe you are looking for