Want to assign one event to two different JSliders

Can somebody explain how to assign one event handler to two different Jsliders?

Jamaal wrote:
I found some code on the Sun example index but it very vague and seems like something is missing. I've been through the Sun JSlider tutorials and examples. I'd call them anything but vague or incomplete; not to be insulting, but it's probable that your understanding of them is as yet incomplete, and you just need to study them some more. If you have specific questions about a part of the tutorial, please ask.
I don't think that the source code even shows how they make the sliders change at the same time.Have you looked at the Converter program source code or run it?
http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#Converter

Similar Messages

  • ICal splits one event into two, how do I fix this?

    I have one weekly repeating event entered.  For the first two weeks it shows up like normal, as one event.  But two weeks later it splits that one event into two different side-by-side bubbles.  I did not alter the event.  Does any one else have this problem?  How can I fix this?

    That is because you are sharing an Apple ID.
    On both phones go to:
    Settings > Facetime > turn off iPhone Cellular Calls
    I would also suggest you check here to make sure your husbands number is not checked on your phone or yours on his:
    Settings > Messages > Send & Receive
    Settings > Facetime
    Otherwise you will get each others Messages and FaceTime calls.
    I recommend that you each get your own Apple IDs if for nothing else than iCloud, iMessage & FaceTime.

  • Automatic Deployment Rule - One ADR for Two Different Collection for Two Different time Intervals

    I have a scenario where two collection of Windows 8.1 is made based on geographical location. One collection is for all the windows 8.1 machines in India and one collection is for all windows 8.1 machines in US. Now I have created one ADR to be deployed
    to the Collection for Machines in India with a schedule.
    My requirement is that can i use the same ADR for those two collection with different schedule. Say I want ADR to be deployed in India at say 10:PM IST and for US collection at say 10:00 PM PST.
    Can I use one ADR with two different schedule and can be deployed to two different collection. Any help will be greatly appreciated.
      

    Couple of "bits" to help you one your patch automation quest:
    A ADR is very much a 1:1:1 rule.  It creates (or updates) ONE update group, deploys it to ONE collection, and you can provide ONE schedule.  While you are more than capable of flipping said deployment time to use local time instead of UTC, in general
    it's a very simple set of rules that are dogmatically run.
    That said because of the "include" feature of collections it's not that hard to setup a good/robust patching pattern.  What I recommend doing is building an ADR for each variance of deployment of patches or enforcement time.  for example,
    my ADRs look something like this:
    Software Updates - Zero day enforced
    Software Updates - Critical and Security 1 month enforced
    Software Updates - Critical and Security 1 month no reboots
    Exact terminology is up to you of course, but I find a good descriptive ADR name saves a lot of confusion.  For each ADR I create an identical collection.  From there I can use existing collections and a simple "include collection" rule
    to bundle things up and make them part of the patching schedule of my choice.  Anyone can now go into my "software update" folder, look at my collections, and know exactly what gets patched by what deadline.
    Finally, don't be afraid to look into maintenance windows to trim down ADR count.  Making a deployment available for a month before it goes enforced, then setting up groups of maintenance windows (one for each Friday of the week for example) can also
    accomplish a similar goal by having machines auto-patch during their week but you only using one ADR.
    So by having two "types" of collections to manage your patching (one to assign a ADR built by deployment deadlines, the other for exact update windows) you should be able to group most your workstations into a decent patch scheudle without being
    too excessive about creating a billion ADRs.

  • Can not assign ONE PFCG ROLE TO DIFFERENT ROLES

    Hi
    First I created a new Conf Key then I created a new NAV BAR by coying the standard Makrting and Sales PRO Nav Bar.
    Then I am trying to create a new buiness role( lets say ZMARKETING PRO) by copying the standard Marketing role and assigned my own created NAV BAR and Con KEY.
    I am facing an error
    " YOU CAN NOT ASSIGN ONE PFCG ROLE TO DIFFERENT ROLES"
    Just want to know the background of this error. Any help would be appreciated and points would be rewarded

    Hello Sajjid,
    Sorry we are not aware of the terminology used in your organization.
    Can you be more specific:
    are you doing Role Release,
    Org Filter changes or creating CHILD (derived) role
    Please generalise your problem.
    Regards,
    Surpreet

  • I deleted the photos via Finder and empty trash long time ago. The thing is, that I want to recover one event or album.  The event appears in the iphoto but when open, it shows "!". Is it possible to recover the photos?

    I deleted the photos via Finder and empty trash long time ago. The thing is, that I want to recover one event or album.  The event appears in the iphoto but when open, it shows "!". Is it possible to recover the photos?

    No.  When you removed the photos via the finder you damage the library.  Photos should always be removed from the library using iPhoto, never with the Finder.
    If you have a Time Machine backup of the library from before you deleted the photos you can restore the library to the Desktop and export that album from it to import into your current library.
    It's been too long to be able to try one of the file recovery applications.  You sure to have overwritten those files with new files since them.
    OT

  • One file to two different folders simultaneously?

    Is there a way to copy one file to two different folders simultaneously?
    Maybe a script?
    Drew

    Thanks for the response Baltwo.
    Maybe I shouldnt have said 'simultaneously'.
    What I'm trying to achieve is this.
    I drop a file into one folder and it automatically copies to ano folder (a redundant back up of the first folder)
    Is that possible at all?
    Drew

  • How does one set up two different iTunes accounts on the same computer so that they do not merge into one?

    How does one set up two different iTunes accounts on the same computer so that they do not merge into one?

    mparker402 wrote:
    So, when the other iTunes account needs to be used, I should log out of Windows and have the other user log in under a different Windows account, correct?  
    M Parker, 
    Yes, since you are trying to keep things separate, that is exactly what you would do.

  • One instance for two different application

    Hello,
    I have to solve following problem..
    need have one instance of object for two different application..fist is standard SE application and second is EE (web)..
    SE application is a server..listen on and accepting connection from mobile phone..and EE application need to show list of connected devices and should say to SE application that new device was connected..
    I would like to do this without database..only server and web app..
    I have thought about RMI..but hope there is more simple solution..
    Thanks a lot for your ideas.
    Dmitrij

    I would like to do this without database..only server and web app..You have your reasons for wanting this to be the case. If you are sure you don't want a DB, then pass the state of the object between the two ends using XML as the transport form. As someone said, you can use JMS or you can write an HTTP POST or probably other transport mechanisms other people will suggest to actually get it over the wire from one side to the other.
    As to your question of how to sync state, just make the object you're sharing final after it's been created (on the side that creates it) and make the reference that receives it and holds it final also, after you've reconstructed it from the XML you received.

  • One PO for two different vendors

    Hi Experts ,
    My Questions are ......
    Can we maintain two different vendors for two different materials and create one PO ? ;
    How does it work  ?
    How is it sent to different Vendors ?.
    Will the vendor receive one general PO containing all line item materials from different vendors...or Each vendor will receive his own line item PO (PO Split)...
    Regards
    Albert

    Hi Albert,
    Your qns-
    Can we maintain two different vendors for two different materials and create one PO ? ;
    Yes you can maintain 2 different vendors for 2 different materials. But you cannot create a single PO (i.e. PO with same number) for 2 different vendors. I do not understand why you want to create one PO for 2 vendors supplying different materials. Can you please explain the logic for it?
    Vivek

  • How can I select events from two different channels?

    Hi everybody, I have another question! :)
    When processing events in config.xml, using a CQL sentence, Eclipse compiler doesn't allow me to select more than one event.
    I paste here my app.context.xml and my config.xml:
    app.context.xml:
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horseInputChannel" event-type="HorseEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanInputChannel" event-type="GunmanEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanOutputChannel" event-type="GunmanEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    And here you are the two config.xml, I have tried two different ones and none of them runs.
    The first one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel
            ]]>
    </query>
    <query id="gunmansRule">
    <![CDATA[ select * from gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    As you can see, I use here TWO CQL sentences from the two channels that are defined in app.context.xml.
    The other one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel, gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    I use here only ONE CQL sentence in which I try to get events from the two channels that are defined.
    None of them works.
    Can anybody help me?
    Thank you!

    Hi! Here you are the files you required:
    SevenHorses.context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageHorse" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageGunman" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horsesInputChannel" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="horsesInputChannel2" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    </beans>
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select message from horsesInputChannel2 where message like "(gunman)"
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    Thanks!

  • One computer and two different ipods...

    Hello,
    Currently, I have a Macbook Pro and an eighty gig ipod. My girlfriend has a 30 gig ipod as well. Our plan is to share a computer and have different media on our ipods. We like the same music but she wants to have pictures on her ipod and I do not.
    Is it possible to have two ipods synced onto one computer where the eighty gig ipod is strictly music and the thirty gig is a combination of music and pictures? Will this be overly complicated or an easy thing to do?
    Thanks a lot,
    Jonathan

    there are basically two ways of using multiple iPods on a computer and these involve:
    a) Sharing a single iTunes library and or user account or
    b) Creating multiple user accounts.
    Note: When you are sharing an iTunes library, you don't have to set each iPod to update in the same manner, you can mix and match from the options below as each iPod has it's own update settings
    Sharing a Library and/or User Account
    If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish):
    Loading songs onto iPod automatically - Mac
    Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    Or you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod
    It's also possible to have multiple libraries in a single account. To create or access a second (or more) library, hold down the Option key (or Shift key in Windows) when launching iTunes 7. In the resulting dialogue you will get the option to create a new library or navigate to the other Library.
    Note: You can only have one Library open at a time and iTunes will default to the last library opened if you don't use the keyboard command to choose one. This can prove tricky when using multiple iPods, if you don't use the keyboard command you can risk syncing to the wrong library:
    Using multiple iTunes libraries -Windows
    Separate User Accounts
    Another option is to create a separate User account for each person on your PC or Mac. Different accounts by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. The iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists

  • Can you create 1 event in two different calendars?

    Hi All,
    I want to create an event and have it go to two different calendars all in iCal. Is this possible? Thanks in advance for your help.

    In  SL you can select the event, go to edit > copy then click on another calendar date and do an edit >paste and click on a third calendar and paste it again if you wish.

  • Save different Objects in one file by two different streams

    Hi all,
    I have a issue to read two Objects from one file if I write those in two different streams.
    I open the ObjectOutputStream and save an Object to the file. Then I close this stream and file. Then I open the new ObjectOutputStream and save the second Object in the same file. It works Ok. Then I open the ObjectInputStream and try to read those two objects and get java.io.StreamCorruptedException.
    This exception happes only when app tryes to read the second Object.
    this is the code example:
    //Write part
    for (int i=0;i<2;i++)
    File file = new File("test.swp");
    FileOutputStream fileOut = new FileOutputStream(file,true);
    ObjectOutputStream objOut = new ObjectOutputStream(fileOut);
    JobObject jobObj = new JobObject();
    jobObj.setID(i);
    objOut.writeObject(jobObj);
    objOut.flush();
    objOut.close();
    fileOut.close();
    //Read part
    FileInputStream fileOut = new FileInputStream("test.swp");
    ObjectInputStream objOut = new ObjectInputStream(fileOut);
    for (int i=0;i<2;i++)
    JobObject jobObj = (JobObject)objOut.readObject();
    objOut.close();
    fileOut.close();
    Thank for any help.

    Maybe try closing the ObjectInputStream (and re-creating it as needed) within your for loop?
    - Saish
    "My karma ran over your dogma." - Anon

  • Use one agent for two different managment servers

    Hi ,
    Can one agent be connected to two different managment server in different domains ,
    or do i have to install two agents in the same server to connect to each managment server .
    thanks

    Can one agent be connected to two different managment server in different domains
    No
    do i have to install two agents in the same server to connect to each managment server Yes.

  • Buy one application for two different Touches, slightly different details

    Hi, I have a couple questions about applications and the touch, my brother and I are getting touches for our birthday and we don't know if we can buy one app and use it on both our players or not. Someone said if both are linked to the same account it's ok but our parents are going through a divorce so we'll likely be living apart...exactly how does it work? W euse the same account but we'll be on different computers so can we do that? Or will be have to have different accounts because we'll be living apart? We use one account and buy as many apps to use on both as we can before we move? If anyone knows and can list the steps we'd appreciate the help

    If you bought an app once and synced it to two different IPT's you'd almost certainly be in breach of Apple's licensing terms. In any case I imagine their apps DRM would prevent you from doing so. You're probably going to have to get separate iTunes store accounts. The divorce shouldn't affect this, there's no reason both accounts can't be registered with the same credit card #.

Maybe you are looking for

  • Xorg 7 and KDE

    I followed this topic suggestions but I've got a problem running KDE. I configured KDM to autostart in init 5 mode and when I log into the system through it Arch doesn't login and takes me to KDM login again. If I log via console mode and I start xor

  • File GEDV0020.MOV is missing

    I have imported some clips from my GE DVX HD camera into iPhoto but when I import them into iMovie I get the message that the file GEDV0020.MOV is missing and the movie won't lay correctly without it.  I can either cancel the import or search for the

  • Collaboration API - Questions

    Can I use Collab API powerful enough to make a portlet just like "Community Projects Portlet"? (including the funcionality to add projects through project explorer)Similarly "Community Documents portlet".Is there a function to get all the documents o

  • Performance flag on cube

    Hi' I'm having some reporting performance issues and have tried to refresh statistics on the performance flag in manage of the infocube. Even though the batchjob "BI_STAT..." has finished correctly, the traffic light remains yellow. I have tried this

  • How do I import a Dvd to i Movie

    I have purchased a Sony Multi-Function Dvd Recorder Model # VRD_MC5. I can make a DVD form my antaloge sony Handycam Vision camcorder. It works great but when I go to I movie I am not able to import them. I can play them on my computer and they work