How to make one component to be displayed in multiple containers

I have a JRadioButton group which I want to add into both tool bar and one of the control dialog. Is there any way to share the instance?
Thanks

I'm bored, so I can answer the question (sorry camickr for ruining your work)
@Op. One instance of a swing component can't be placed in two different containers or at two locations. You need to create two instances instead. That is, create a panel class which has your radiobuttons on it, create two instances of the class, and place the instances where you want them to be. The panel class is the view in the mvc concept, and they can both share a data model.
Kaj

Similar Messages

  • Help!!! How to make quicktime plugin do not display on top of the web page?

    Any one knows how to make quicktime plugin do not display on top of the web page??? I've tried to change the zIndex property using javascript, but it doesn't work.
    Because we have some widgets which are required to be moved to anywhere on the page, we use iframe to implement that, so it can display on top of quicktime plugin, but the plugin flickers sometimes when we do some operation on the widget which is on top of it.
    Anyone can helps me? Thanks in advance!!!
      Windows XP Pro  

    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    Check the docs. Trent is usually very thorough in his
    instructions.
    Hint: I haven't studied it but it probably involves modifying
    one of DW's
    built-in Behaviors.
    Walt
    "ducati1" <[email protected]> wrote in
    message
    news:gkb906$qrd$[email protected]..
    > Wow that DW extension is just what I needed.
    > Thanks..
    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    > I currently have the thumbnails set to insert the ALT
    text into a text box
    > on
    > mouse click.
    >

  • Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times

    Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
    Please help to set it up, thanks in advance

    You need to give more info..
    Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
    Most likely you have bridged it when it should be in router mode..
    Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
    Change it to working as a router. That might help.
    If you press reset button it will default back to router btw.
    If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547

  • HT5796 I was on a a different Apple ID and I logged out because they didn't want me on there anymore so I figured out how to make one and now it's not letting me upgrade or download anything. I rebooted my iPhone 5, iOS 7.0.4 multiple times nothing fixed

    I was on a a different Apple ID and I logged out because they didn't want me on there anymore so I figured out how to make one and now it's not letting me upgrade or download anything. I rebooted my iPhone 5, iOS 7.0.4 multiple times nothing fixed my problem.

    I was on a a different Apple ID and I logged out because they didn't want me on there anymore so I figured out how to make one and now it's not letting me upgrade or download anything. I rebooted my iPhone 5, iOS 7.0.4 multiple times nothing fixed my problem.

  • Slide duration - How to make one slide have a different duration to another slide?

    Slide duration - How to make one slide have a different duration to another slide?
    EG So one slide has 2 seconds, another 4 another 6
    All I can see is how to make all slides have the same duration
    Any help very much appreciated!
    Brian

    Slide durations are not changeable on a slide-by-slide basis.

  • How to make one dvd from several camcoder dvd's

    How to make one dvd from several camcoder dvd's. I got a dvd camcoder, to be able to play them into DVD player I had to finalize  my disks. Now I got several DVD's whith short files and terrible custom camera menu. I'd like to make it more presentable.
    The main problem is I dont want to recode my vob files. So Final Cut and other editing soft is bad idea.
    Is there any soft on mac I could reauthor my DVD's?

    How to make one dvd from several camcoder dvd's. I got a dvd camcoder, to be able to play them into DVD player I had to finalize  my disks. Now I got several DVD's whith short files and terrible custom camera menu. I'd like to make it more presentable.
    The main problem is I dont want to recode my vob files. So Final Cut and other editing soft is bad idea.
    Is there any soft on mac I could reauthor my DVD's?

  • Powl- how to make one line editable for 'Insert line' button

    Hi,
    I have a powl in which I have two buttons of 'Insert Line' & 'Save'.
    Now in my result table - c_result_tab - I need to give one editable line, in which user can enter new record.
    & after entering it when they click on 'SAVE' i'll append the record in c_result_tab.
    Now my Que is - How to give Editable Line in ALV Display table of POWL, where User can enter New Record ??
    or is there any other std. procedure, like popup or something - which can help to enter record in same format as c_result_tab.??

    z-order for what? the Canvas class itself? It's AWT, so why would they be adding to that? For Graphics? That's not really needed, since to paint you have to override paint in a subclassed component and in there by definition you can fully control your painting.

  • How to make mouse click event to display image on 2D array?

    Hi! beginner programmer here looking for some guidance, hints and tips.
    I'm making a game of "Connect 4" and using a 2D array to display the board which is 7x6 in size.
    What i want to do is that when the player clicks on one of the squares, one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array and check if the square in the first row is empty and if true, places/display
    the game piece, else it places the piece on the first empty square.
    Since i've never worked with WinForms or 2d arrays before i'm not sure how to initiate it.
    What i was considering in pseudocode was:
    pb_Mouseclick(object sender, MouseEventArgs e)
    if(e.Button==MouseButtons.Left)
    Picturebox pb=(Picturebox)sender;
    clickLocation.X= e.Location.X + pb.Location.X, pieceArray[row];
    clickLocation.Y=e.Location.Y + pb.Location.Y, pieceArray[col];
    if(pieceArray[row, col] == null)
    if(player1.IsStarter==true) selectedimage(@"yellow.png")
    else
    selectedimage(@"red.png")
    else {
    bool empty= false;
    for(int row=0; row<height - 1; row++)
    for(int col=0; col<width; col++)
    if(pieceArray[row, col] ==null)
    empty=true;
    (Add gamepiece)
    This is what i've come up with so far, but it's just some theorycrafting, not sure if i should use a while-loop instead...
    Hope anyone can give me some insight on how to make it work and if the logic of my pseudocode is correct for what i want according to my earlier explanation.
    Many thanks in advance!
    Regards
    Gabbelino
    Student at the University of Borås, Sweden

    Hi Gabbelino,
    I could not understand your game rule clearly, and could you make explanation for me?
    1.>> when the player clicks on one of the squares
    What were the squares? Did it like dice or anything else?
    2.>> one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array
    What is the 2 game pieces? Could you show us the two pictures?
    3.>> check if the square in the first row is empty and if true, places/display the game piece, else it places the piece on the first empty square
    Could you show us where places/display the game piece?
    Best Regards,
    Tony
    Help each other

  • How to make Macbook work with closed display?

    I need to make MacBook to be closed (display) most of the time and work with external monitor, keyboard and mouse (actually trackball as I have been hating any type of mice since 1998 and not using it even at work).
    Now I do not like mediocre resolution of small MacBook display and I prefer my 20 inch wide monitor. Also the keyboard is rather for quick work in small areas like restroom rather than comfortable work on big desk (I hate notebook keyboards either as they make me feel claustrophobic and crunching my fingers).
    Considering recent buzz on Mac Mini not living for too long into future I would love to find alternative solution (meaning I do not want computer with display and keyboard in one and I do not have needs of spending few thousand of dollars for big metal case good for feeding and breeding birds I have ergonomics demands, but not higg performnce processing needs.
    So can you tell me how I make Apple notebook being closed (and perhaps squashed by monitor stand) behave like a CPU box?
    Thanks,
    Maciek

    Thnaks, but I am not interested in bluethooth/wireless solution. That minimum of cable to reach CPU does not bother me and I do not buy big monitor to work on my computer from adjacent room. I just need space for more windows and I think Apple did great job having USB Hub on keyboard that allows stringing mouse and keayoboard with one cable to CPU.
    Also I haven't heard of wireless KVM and I use such solution. This is not my only computer as I run home network and two of them in my room are supposed to share keyboard, mouse and monitor. So far I was successful to run this setup, but I need inexpensive plain CPU from Apple to be able to find comfortable solution to work.
    Well I could drop the other computer if Apple managed to provide everything that I need (how about Safari properly working with Citrix client and Remote Desktop to Windows as I do not want Firefox on Apple computer? Only Firefox fixes the problems with this software).

  • How to make one-option dropdown list partial trigger?

    There are two dependent dropdown lists. when list one is selected, the other one will get the SelectItems according the value of list one. My question is: when there is only one selectiem in list one (and the hint 'Please select one..."), how to make it partial trigger in the second time? e.g. I first login and select the ONLY one choice in List one, and the List two gets the values. but the data in datasource updated, so I want to choose the List one again, and make the List two get the new values.

    Hi,
    create a JSF binding (Bindings property on the list component) to a managed bean. The in the code that would trigger the PPR, call
    AdfFacesContext.getCurrentInstance().addPartialtarget(theListBindingName);
    If you have a refresh button, then you could use declarative PPR
    Frank

  • How to: make one or two partions at a raid system?

    Hey
    how can i make one or more a partions at a raid system?
    i will make the partions at a 250gb raid. one with 120gb for the bootsector, and the other for documents, etc.
    is there a hwo to anywhere? dont find one?
    please read my second question.... 2 raids at one mac pro?
    regarads

    O.K., i was looking the hole day to get that partions on a raid working.
    to make the partions on each HD with the same volume, this is no problem. when you then create the first raid, works fine. but when you make the second raid, you get a massage, that this raid is not found.
    then you see both raids at the disc utilty, but only at the first you seen the volumen down under, by the second not. the first works, the second is not avabiele.
    so, now i have only one big mirrowed raid for my boot sector, and its runs fast, quick and without big noise... thats what i want, and the second big raid for my files.
    2 raids at one mac pro with 4 hd. one with 2 x 250 gb hd for the bootsector, and the other with 2 x 500gb for files
    thx to all, and you kappy
    regards

  • How to make one of the columns in my tabular an text item with popup lov

    Hello,
    I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
    and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
    the deptno and this deptno should be returned into the text item popup lov column.
    like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
    it should open up an new sql report(similar to popup lov window), the select statement for this would be
    select deptno,dname,loc from dept order by 1;
    And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
    something like this
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
    from "#OWNER#"."EMP"
    like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
    -- this value should be returned to my text item popup lov column deptno in the emp tabular form.
    can anyone help me out with this issue.
    thanks,

    Hi,
    Refer to the link for the detailed information on ALV Grid.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Hope it helps.
    Regards,
    Rajesh Kumar
    Edited by: Rajesh Kumar on May 25, 2009 9:13 AM

  • SQL Query (updateable report) - Can't figure out how to make one

    Hi folks,
    Can someone tell me how to make a report where the data can be updated? Not an interactive report, a SQL report that selects only one row. The only options in the drop down I see are "SQL Query" and "SQL Query (PL/SQL function body returning SQL query)", but I have a report elsewhere that says it's type is "SQL Query (updateable report)", but I can't remember how to do it :(
    Thanks very much,
    -Adam

    Hi Adam,
    An Updatable Report is a "Tabular Form" - see: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/frm_tabular.htm#CHDFBHDB
    Andy

  • HT5312 i didn't give a rescue email address when i first made my account and now i can't figure out how to make one

    i didnt make a rescue email address straight away and now i cant figure out how to make one

    There are instructions for how to do edit or delete it (and you can add one via the same process) half-way down the page that you posted from :
    You can edit or delete your rescue email address using the Apple ID website. To edit your rescue email address:
    Navigate to appleid.apple.com using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    After you've validated your identity by correctly answering your security questions, click Edit to the right of your rescue email address.
    Once you've finished editing your rescue email address, click the Save button directly below the email field.

  • How to make a component as readonly dynamically....

    Hi,
    I have a requirement and working on it since long time... I want to make a component readonly at runtime...
    I have to take a value(true/false) from message bundle and based on that value, I have to create a component as readonly or not...
    How to do this....
    I tried to do like below...
    <h:inputText style="width:170px;" value="#{bean.firstName}" readonly="#{msg.readOnlyFirstName}"></h:inputText>
    but it is giving exception like this...
    org.apache.jasper.JasperException: Could not get property readonly of component
    Please help me on this...
    thanks in advance..

    Hi,
    I think i should give answer to your question in two folds,
    #1) Dont use the properties files for such opeation(enable and diaplbe of component), and if you wnat to use this then you need to do it via backing bean. What you have to do is, you can declare a property in backing bean of that page whcih will tell rendered about the enabling/disabling the particular component. To set the property delclared in backing bean read the property file and then set it to true or false based on your need.
    #2) Use backing bean directly by omitting the property file from picture.
    By taking a look at your exception it seems that the something is wrong with readonly attribute, can u post complete exception.
    --Surya
    thoughts can change everything
    null

Maybe you are looking for

  • PP application with invoice having currency other than PP.

    Dear All, Please note that we are using Oracle EBS R-12 and maintaining our books in Pakistan Rupees as well as enabled all of our banks with Multiple currency (AP/AR) both. Can we apply PP (USD) with invoice (PKR)? Regards, Abdul Hafeez

  • Problem in physical inventory

    Hello Experts, We created 80 physical inventory documents to count almost 4000 materials, but we realized that it is not possible to count all 4000 materials in one day so we decided to count it over the period in 8 phases. So, we deleted the 80 phys

  • Kudos on the File Manager Fixes!

    As a group that prefers the "Develop" file manager interface over Dreamweaver, we're stoked about this week's bug fixes -- works perfectly now! If you don't already use the file manager, you should consider giving it another try... With the exception

  • Brush tool delay

    Brush tool set to round, 100 flow and opacity, black, simple stroke... With CS6, the undo command-Z function won't work w/ the brush tool. I have to fuss w/ the history panel, and even there, it's not obvious and quite fussy. Is there some sort of ne

  • Spry:repeat display data in multiple rows/columns

    I know how to use spry:repeat to display data in table rows, one item per row. Is there a way to tell spry to display data in a grid of x rows by y columns? I'm trying to maximize the page's real estate. Here is the page http://www.jannah.com/mp3/bro