How to set a Swing component as Modal window on a SWT Component.?

How to set a Swing component as Modal on a SWT Component.I mean, I have a window (SWT Container) with some menu items.
When I click on one menu item then i will get one new Swing Window.
When creating the new frame I had passed Modal value as TRUE in the constructer.Now child is not behaving as Modal Window.I mean I am able to go to parent window even though the child window is opened as a Modal Window.This is only happened when I double click on the Title Bar of the Parent Window.
If I try to click on any other part of the Parent Window except Title bar ... the child window is working as a Modal Window.
Can any one suggest me to solve this one !!

int this case, do this :
JFrame f = new JFrame("Authentification");
f.getContentPane().setLayout(new BorderLayout());
f.getContentPane().add(myJPanel, BorderLayout.CENTER);
f.setBounds(x,y,w,h);
f.setVisible(true);
Where myJPanel is the Panel you developped.

Similar Messages

  • How to set a Swing component as Modal on a SWT Component?

    How to set a Swing component as Modal on a SWT Componen?.I mean, I have a SWt Component window and from that window I am displaying a SWING Component Modal window.
    The problem is my swing window is not working as Modal always.
    When I opened the swing window from SWT window,swing window is working as Modal.But if Idouble click on Menubar or Title bar of the SWT Window then my Swing window goes back.If I click on any other part of the SWT window.. then once again Swing window is working as modal.
    Can any one suggest me to solve this?
    I think this is isuue related with Swing over SWT..

    pradeep.rajadurai wrote:
    I want set the JTable as a background of jframe or jinternalframe , how it is possible One way that may work, you can always extract the image from a rendered JTable and then paint the same image into the JPanel that holds your components via it's paintComponent method, then added the JPanel to the app's contentPane.
    give me simple pgmIs English your second language? Because if so, please understand that this demand can be taken by some as rude.

  • How to set two radius servers one is window NPS another is cisco radius server

    how to set two radius servers one is window NPS another is cisco radius server
    when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
    i can not use both at the same time
    radius-server host 192.168.1.3  is window NPS
    radius-server host 192.168.1.1 is cisco radius
    http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
    conf t
    no aaa authentication login default line
    no aaa authentication login local group radius
    no aaa authorization exec default group radius if-authenticated
    no aaa authorization network default group radius
    no aaa accounting connection default start-stop group radius
    aaa new-model
    aaa group server radius IAS
     server 192.168.1.1 auth-port 1812 acct-port 1813
     server 192.168.1.3 auth-port 1812 acct-port 1813
    aaa authentication login userAuthentication local group IAS
    aaa authorization exec userAuthorization local group IAS if-authenticated
    aaa authorization network userAuthorization local group IAS
    aaa accounting exec default start-stop group IAS
    aaa accounting system default start-stop group IAS
    aaa session-id common
    radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
    radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
    privilege exec level 1 show config
    ip radius source-interface Gi0/1
    line vty 0 4
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    line vty 5 15
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    end
    conf t
    aaa group server radius IAS
     server 192.168.1.3 auth-port 1812 acct-port 1813
     server 192.168.1.1 auth-port 1812 acct-port 1813
    end

    The first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on. 
    If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs. 
    I hope this helps!
    Thank you for rating helpful posts!

  • How to set multiple ORACLE_HOME and ORACLE_SID, on Windows

    How to set multiple ORACLE_HOME and ORACLE_SID, on Windows.
    I have 5 oracle instances. Every time if i want to start up the services , I am manually setting the environment variable (ORACLE_HOME and ORACLE_SID) and starting the services one at a time.
    Can we set multiple ORACLE_HOME and ORACLE_SID in Start->My computer-> properties-> advance-> Environment variable.
    Thanks
    Naveen

    Hi ,
    Can you please give me the link, for the doc you are referring to
    Thanks
    Naveen

  • RH 7: In a CHM, how can I open an independent, non-modal window?

    Hi all,
    Using RH7.
    From within a CHM page, how can I open an independent, non-modal window?
    From within a topic I want to display a large picture by clicking an icon. The picture should appear in an independent, non-modal window that the reader can grab on its caption bar and so move the window  around. Thus, the reader can move the picture window to one side of the monitor, for example, and then use it as a reference, while continuing to read the topic on the other side of the monitor.
    Is this possible in RH7? If so, which RH feature would I use to do this?
    TIA
       avi

    Hi there
    I'm guessing you want to simply open a new browser window without any browser controls, right? In this case, you will need to use JavaScript to do it.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to set the extra component to horizontal scrollbar position

    How to set the component to position of horizontal scrollbar , that position contain two component horizontal scrollbar and any component (JButton , JLabel ) like that.. Ms-Word scrollbar ,
    Like that bellow fig.
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    </w:Compatibility>
    <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
    </w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
    </w:LatentStyles>
    </xml><![endif]-->
    <!--
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-parent:"";
    margin:0in;
    margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:12.0pt;
    font-family:"Times New Roman";
    mso-fareast-font-family:"Times New Roman";}
    @page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.25in 1.0in 1.25in;
    mso-header-margin:.5in;
    mso-footer-margin:.5in;
    mso-paper-source:0;}
    div.Section1
    {page:Section1;}
    -->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    </style>
    <![endif]-->{font:'Times New Roman'}{size:12pt}<!--[if gte vml 1]><v:shapetype id="_x0000_t75"
    coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
    filled="f" stroked="f">
    <v:stroke joinstyle="miter"/>
    <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
    </v:formulas>
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
    <o:lock v:ext="edit" aspectratio="t"/>
    </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:453pt;
    height:26.25pt'>
    <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\04\clip_image001.png"
    o:title=""/>
    </v:shape><![endif]--><!--[if !vml]--><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/04/clip_image002.jpg" alt="" width="485" height="27" /><!--[endif]-->{size}{font}
    How to design ?

    pradeep.rajadurai wrote:
    I want set the JTable as a background of jframe or jinternalframe , how it is possible One way that may work, you can always extract the image from a rendered JTable and then paint the same image into the JPanel that holds your components via it's paintComponent method, then added the JPanel to the app's contentPane.
    give me simple pgmIs English your second language? Because if so, please understand that this demand can be taken by some as rude.

  • How to set the title of an urxvt window?

    Hello,
    I have read the manpage and FAQ on the urxvt website, but my problem persists:
    When I try to set the title of an urxvt window, for example:
    $ urxvt -title test
    then the new window shows for a second the title "test" and then switches  to "username@hostname:~".
    Yes, I have
    case $TERM in
    xterm*|*rxvt*|Eterm|eterm|rxvt-unicode|urxvt)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    esac
    in my .bashrc.
    But I think, the explicit command line option "-title" should break the .bashrc, right?
    The default setting by .bashrc is intentional, but in this specific case I would like to set the window title by hand.
    How can I do that?
    Last edited by indianahorst (2011-06-22 11:01:34)

    I would recommend that you not use the PROMPT_COMMAND to set your bash prompt at all.  Use the PS1 environment variable. By using PROMPT_COMMAND, you are invoking a subshell each time you hit return; which is most likely unnecessary.
    In fact, you are probably already setting PS1 in your .bashrc; and that is what is changing your window title.  You can set PS1 to a different value, and then it will not reset your window title with each command.
    Just set PS1 in your .bashrc to:
    PS1="[\u@\h \W]\$ "
    You can see a more complete list of the available \u, \H, etc. options here.
    If you do wish to reset the urxvt window title by setting PS1, do the following:
    PS1="[\u@\h \W]\$ "
    PS1="\[\e]2;\u \W\a\]$PS1"
    Edit:  As I look at this a little closer, I see that your PROMPT_COMMAND is indeed setting your window title.  You could change it to the following:
    PROMPT_COMMAND='echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}"'
    But I would still not use PROMPT_COMMAND and just set PS1 instead.
    Last edited by rockin turtle (2011-06-23 03:53:57)

  • How to Set Up Network Between IMAC and Windows XP

    Hi
    I have a new Imac 27 inch in my study and a PC running Windows XP downstairs - I don't know how to set up the PC and when I phone apple support they could only tell me how to file share from the IMAC end - would be grateful for some help

    First of all, it is easier if your Windows user has a password, it may not be the case, if not, you should set one.
    Then check your firewall settings. if it is activated, go to your network connection's properties, choose the Exceptions tab, and check "File sharing" so that it will no longer be blocked.
    From now on, you should be able to connect to your computer from the finder.
    Choose Go > Connect to server
    Then in the address, type smb://ip.address.of.windows/ and OK
    after a short time, it will prompt you for your username and password, and you should be able to access your Windows resources.
    If your Mac and Windows are in the same workgroup (set in computer properties in Windows, and in Network properties in Mac) it will appear in any finder window side bar.

  • How to set Reader to open in new window

    I have .pdf documents into which I have inserted links to other .pdf documents using pdfEdit995 (I am a 77-year-old recording monumental inscriptions, not very computer literate and not able to afford expensive applications !)
    The links look like :-
    [ /Rect [85 225 107 228]
    /Border [ 0 0 0 ]
    /Action /Launch /File (.\\Another Folder\\TARGET FILE.PDF)
    /Subtype /Link
    /ANN pdfmark
    The links work fine, but open in the same window, which is annoying as it is then neccessry to re-open the original document before moving to the next link.
    pdf995 support say that perhaps Adobe reader can be set to open in a new window, but I want this to be the default when I circulate my file to intersted people, so would prefer to modify the links.
    Can anyone help with a smple solution ? (I also believe in Santa Claus !)

    No part of this question appears to involve GoLive. You should be asking this in a pdf995 forum, or at the very least, an Acrobat/Reader forum here.

  • How to set focus on component guaranteed?

    Hi All,
    I want to run my swing based application on win NT OS with JDK1.5. Now i need to set focus on my JFrame window (this is my requirement) but smetime it focussed and sometime it fails. So i need some guaranteed solution or approach so that it focus on my JFrame window i tried so many methods like requestFocusInWindow(),
    requestFocus(),setFocusable() etc. But my application sometime doing expected behavior and sometime fails.
    Can anybody suggest me 100% guaranteed approach? I appriciate any ideas.
    Regards,
    Pradeep
    Edited by: pradeep_dubey on Mar 17, 2009 6:52 AM

    But my application sometime doing expected behavior and sometime fails.Almost certainly a concurrency issue. Are you aware of Swing's single threaded rule, and have you taken care to create and update all Swing components on the EDT?
    [_Threads and Swing_|http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html]
    [_The Last Word in Swing Threads_|http://java.sun.com/products/jfc/tsc/articles/threads/threads3.html]
    db

  • How to set the default component color

    Hi
    I have a JFormattedTextField which is part of a form. Based on user input, if there's something wrong in it, then I colour it pink. I also make it editable(true) or editable(false) based on the mode that I am.
    Problem I have is that once I set the color of it once (to pink), then it won't change the colour of the Textfield based on mode when I call setEditable(true/false) anymore. I want it to "unset" the colour that I did and not have to colour it everytime. I don't want to have to manually change the colour after I set the colour once.
    Can anyone help me with this?
    Thanks!

    Thanks camickr !
    That's exactly what I was looking for. (let the UIManager take care of colors of the textfield whether it's editable or not)
    as for 2nd reply my code is in several files. IF i have to shorten it, it would be:
    it's just a pseudo code and incomplete but it gets the idea across
    * this function automatically changes colors of textfield based on mode which can change any time
    if(mode == NEW_MODE)
    textField.setEditable(true);
    else
    textField.setEditable(false);
    * This function sets the color during save time
    public void save()
    clear();
    if(textField.getText() == null)
    textField.setBackGround(Color.PINK);
    public void clear()
    //reset the color if it's pink or to the original color
    //the color must update once we change mode which is independent of this
    public void open(Patient p)
           clear();
           displayPatient(p);
    }

  • How to set the WebDynpro application title (IE windows title)?

    Hello all,
    I would like to set the WebDynpro application title according to the current transaction ID. This title is the IE windows title that is shown on the upper left-corner of the IE browser.
    Rule: [Object Instance Information] u2013 [Application Title] u2013 [Browser Title]
    For example: Trans. <No.> - <My App> - Windows Internet Explorer
    I would like to set <No.> dynamically on run-time according to my current transaction number.
    I have this piece of code that gets a reference to the application info:
    data: lr_app_info TYPE REF TO if_wdr_rr_application.
    lr_app_info ?= wdr_task=>application->application_info.
    And there is lr_app_info->get_description() method to have the description of the application, but there is no set method.
    The application description can be hardcoded in:
    tx. SE80, opening the WebDynpro component, then accessing its WebDynpro application. In the properties tab, there is a description field. I need to append transaction ID to it.
    Do you know any way to implement this? This issue is for WebDynpro ABAP.  
    Best regards and thanks in advance,
    Fouad.

    Hello Satra,
    Thanks for your reply. I already had a look into that thread, but my question is not related to the windows title of the WebDynpro  component.
    My question is related to the title of the Internet Explorer that we all see on the top left-corner. For WebDynpro , this is the WebDynpro  application title. How can we change it?
    I hope my question is clear now, and I wish someone can help me soon.
    With kind regards,
    Fouad.

  • How to set the dimension of main page windows for std dot matrix printer

    Hi All,
    I have to print a form in a pre- printed form which is coming from the standard dot matrix printer( 80 column).
    In the Sap script how i will define the dimensions of main page window .
    The printer is in US .  How i can sets the page dimensions .
    reward point will be provided.
    Regards

    Change SEQUENCE = "213" to SEQUENCE = "218" in the Task ID Field component. That will solve the issue.
    --Shiv                                                                                                                                                                                                                               

  • How to set up an Airport Express on Windows 8 on laptop with no CD drive?

    I recently purchased an Asus Ultrabook which has no CD drive. I have Airport Express set up on my old laptop, this was set up via an installation CD.
    How do I move the Airport Express to my new laptop and install the software without the CD? I can't seem to find a software download for it.
    I'm sure this is a basic question for those in the know, but I'm stumped!
    Thanks :-)

    Welcome to Apple Support Communities
    If your PC hasn't got a disc drive, download AirPort Utility from the Apple website to set up the AirPort Express > http://support.apple.com/kb/DL1547?viewlocale=es_ES

  • How to set mac shortcuts (for mac and windows OS)

    i am having a bit of an issue.
    i run windows 7 and mac os on the same computer on different hard drives in this computer. i also have a "mac" keyboard. i am not sure how this may be different from a "windows keyboard" but the point is i need to use this keyboard because it matches the one on my laptop which is a mac.
    when i switch to windows on this machine i always end up deleting information because the CMD + X and CMD + V cut and paste shortcuts on Mac OS are not the same in windows. windows requires (currently) CTRL + X and CTRL + V. so when i got to cut and paste in windows CTRL + X (this is my habitual way of working) and then i run a CTRL + V i end up writing /over/ the text i selected with a "x" and i end up pasting /over/ the text i selected to paste over with a "v". this is because instead of running a cut and paste, this set of shortcuts in windows simply enters "x" and "y" respectively since the shortcut is not active.
    does anyone know where i set these in windows OS and in mac OS?
    also, does anyone know if it is possible to set how many UNDOS i can do in either of these OS's or to know how many i can in fact undo?
    THANKS
    long story background:
    1. while i may move to a windows keyboard on the computer i am using (because the mac keyboards these days end up losing keys and they end up very wobbly) i cannot do this for the laptop machine so this may not make a lot of sense if i end up also running windows on the laptop which is my intention at some point.
    2. CTRL + X is a very long stretch on the mac keyboard so rather than switching mac shortcuts to accommodate windows shortcuts i am thinking to switch windows shortcuts to mac ATM.
    3. this is no small issue! i just went to copy and paste this text so i could save it for myself in order to explain to someone else and i ended up overwriting with a "c". if i had not thought fast and remembered to UNDO by hitting CTRL - X and not CMD - X i might have lost all my work.

    long delay - no email of your post here
    I also realise that you can use system preferences - Keyboard - modifier keys to make cmd = ctrl or vice versa
    I'd surely ask/read elsewhere about altering windows, given the reach issue - but no qualms beyond confusion if switching/using other machines.  You might soon find you switch layouts mentally, quite easily.
    more to read:
    Remap Copy and Paste shortcuts on a Mac - Super User
    Remapping Keys and Buttons
    Microsoft Windows Keyboard remapping
    How to: Remap Apple Keyboard Command Keys to Control Keys

Maybe you are looking for

  • Gantt chart in Graphic layout of project

    Hi, is it possible to add a column in Gantt chart in cProjects project display? There is a BADI DPR_GANTT method GET_GANTT_PARAMETERS, but it is possible only to delete the columns, while I need to put a new column there. Is that possible? Thank you.

  • Airport Extreme signal levels

    I have a MAcBook Pro, and I have recently installed the Airport Extreme and I have created a network, but I have the same wi fi range than which I had with the Airport Express. What am I doing wrong? Thank you

  • Work iPad, iCloud account already on it. How do I delete?

    I have a work iPad and am trying to set up my iCloud account on it. The problem is, there is an iCloud account set up by the previous user. I obviously don't have his password so I can't delete the account. What do I do?

  • Another problen

    i have pic on my 60g ipod but there is no library in itunes. how do i get them in the new itunes. i cant drag into music and since there is no library this itunes BLOWS. dont you think apple makes enough money and they could provide better support. a

  • Mocha stabilize CS4

    I imported a clip (Cineform), did the tracking and finally exported the tracking data. Saved it to notepad. Opened AE seleted the clip, go to notepad and copy date, But then AE does not let me paste the datea on the clip, Paste (ctrlV) is grayed out.