How can I make a call to a swing component which will be blocking?

Hi,
I have a small GUI, and an underlying application class which interacts with it. At one point in time, the underlying class needs to wait for the user to type a string into a textbox, and press a submit button (both of which are on a GUI that is already visible to the user). I cant seem to figure out how to make the call to the gui, so that i blocks, until that submit button is pressed.
Do I have to spawn a seperate thread which constantly is checking if that button is pressed (i.e. associate a flag with that button).
I pretty much wanna do something similar to JOptionDialog, but with my own gui implementation.
thanks!

No...let me rephrase...
1) I only want 1 dialog...with multiple swing components on there. 2 of which are a textbox, and a jbutton....the jbutton has a listener associated with it....and that obviously grabs the text from the textbox...
2) I have a model class (no swing components, only a reference to my dialog)...I want to make a call to the dialog, which blocks, until the button is pressed...
did this clear things up at all?

Similar Messages

  • How can I make a call from iPad

    How can I make a call from IPad

    Oh, you have to get the iPhone app.
    Seriously, though .... you are aware that it's not a telephone, right? Any calls you make will be using VOIP and any of the apps and/or services (Skype, Google Talk, etc., etc.) which support that. Some of those are US-only, all have various restrictions and cost structures.

  • How can we make function calls to sap in odi ?

    how can we make function calls to sap in odi ?
    to populate a column i need to make a function call which returns the value.

    There are two ODI SAP adapters available that allows extraction from SAP ERP and SAP BW. For SAP ERP we allow extraction from ERP tables, but not from RFCs/BAPIs.
    You can find details on them at
    http://www.oracle.com/technetwork/middleware/data-integrator/overview/odigs-sapabap-168070.pdf
    http://www.oracle.com/technetwork/middleware/data-integrator/overview/odigs-sapabapbw-168071.pdf

  • How Can I make redirect caller from agent to any branch IVR?

    I have IPCC Enterprise Edition (ICM 5.0, IVR 3.1)
    How can I make redirect caller from agent to chosen branch IVR, and send with call any variable to IVR (e.g. account number).
    Regards
    Krzysztof

    I would suggest that post-routing should not be used. The way to go is to use translation routing applications. Although post-routing is easy to set up, almost all deployments require translation routing. I can't think of anything good to say about post routing, other than it's trivial to configure.
    You want the main route point to be on the CM_PIM.RC for a number of reasons. You can check to see which of your IVRs are on line, and/or to do load balancing. If calls don't need to go to the IVR if agents are ready, you can have an LAA Select node immediately, and then translation route. Even if you just have one IVR, translation routing will enable you to do RONA more easily.
    You need to bite the bullet and learn translation routing. If you do it that way, peripheral variables attached to the call remain unaffected whether the call is under the control of the CM_PIM.RC or the IVR_PIM.RC. This is exactly what you want.
    There is no need, in my opinion, to go to an external database. In your IVR, decisions made by the caller (e.g. which "skill" they want) set peripheral variables. When the call comes out of this script you check the peripheral variable, and depending on the value do a queue to the appropriate skill group and run external script (BasicQ.aef).
    Separate the intelligence gathering IVR script from the Queuing script. Allow ICM to make the routing decisions.

  • HT5176 How can I make a call from my new iPad(3rd generation) with wifi+4G

    How can we make a call from iPad 3rd generation with wifi+4G?

    You cant "Call" anyone. Its not a phone. You can facetime other IOS users. Setup facetime with your apple id in ipad settings/facetime. You can also download apps like skype in the app store.

  • How can I make the edges of the JSC component curved?

    It is a very common practice to make the edges curved in web development. Curved edge looks attractive and professional. (for example see blog.com)
    How can I make the edges of the JSC component curved? For example, consider Textfield component, how to make the the sharp edges smooth and curved?
    Thank you very much.

    Follow the steps below implement rounded edges for tabs in a tabset component:
    1)Create 2 images: level1_selected.jp and level1_deselct.jpg to be used as the background for these tabs. Thse images can be easily craeted using windows paint software. Just ceate a rectangular image of size 200X30 and draw a rounded rectangle on it.
    2) Redefine the following styles in your application stylesheet(originally defined in css_master.css)
    .Tab1Div td.Tab1TblSelTd {
         background-color:#EDF5F8;width: 200px;height:40px;background-image:url(images/level1_selected.jpg)
    .Tab1Div td.Tab1TblSelTd {
         background-repeat:repeat-x;background-position:left bottom;border-bottom:none
    .Tab1Div td {
         background-color:#EFEBEF;width: 200px;height:40px;background-image:url(images/level1_deselect.jpg);border:none
    .Tab1Div td {
         background-repeat:repeat-x;background-position:bottom left
    a.Tab1Lnk:link, a.Tab1Lnk:visited {
         display:block;padding:8px 15px 0px;font-weight:bold;text-align:center
    Results: By doing this you'll have the selected and unselected tabs show up with rounded egdes and also the selected tab will look bigger than the unselected tas making it more prominent.

  • How can I make a call with my iPad in Nigeria

    How can I make calls with my iPad in Nigeria? Also, why is Nigeria not listed among the Region on iPad?

    You can try downloading them as explained here:http://support.apple.com/kb/ht2519.  (This is not available in all countries, and must be permitted by the movie studio.)
    Otherwise, sync them to your iPad by selecting them on the Movies tab of your iTunes sync settings and syncing.

  • How can I make a call to *190*phone number# in c#?

    Hi,
    I am trying to create an app as shortcut for some requests.
    I want to make a call to this number: *190*phone number# using c# but it never works.
    On the phone, I can call this number and I get a reply from my provider.
    If I try to call it using:
    Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI("*190*phone number#", "TEST CALL");
    I get a message saying that I have to use the dialer keypad to send the request.
    Is there a workaround for this (bug)? I mean, if I put the phone number in the phoneCall-request, it is because I don't want insert it manually in the dialer keypad...
    Thanks,
    Adriano

    Yes security LOL...
    If Microsoft want security, they should create a smartphone without the possibility to install apps ;)
    If an app can't make a call (user has to press CALL), the same thing is also possible for a FREE request to the provider, or not?
    Thanks for the link! This show once again that write a utility for WP is a hard work...
    If I create a new contact, I have to call phoneCallTask.Show();
    ... And so I am on the same situation.
    .My phone provider created an app for iPhone and one for Android. I was thinking I would be able to create something for Windows Phone too. Now I know why nobody want to create tools for Windows Phone. The API never allow you to write a utility (for security
    reason, I know ;) )... But it would also be nice to have a utility some times in a store full of inutility apps :(
    About this BUG:
    I can create a textbox where the user can copy the phone number (maybe the app could copy it automatically in the clipboard if there is no security problem about the OS :P). But the user has to exit the app, open the dialer and insert this text.
    Is there a way to open the phone dialer?
    Thank you for the support Cristian!

  • How can we make a call to the Data base in the SAP Scripts?

    Hi All,
            How we make a call to the data base in scripts?
    I think we can use the PERFORM statement to achieve the above functionality.
    Pls correct me if i am wrong?
    Regards
    Abhilash.

    Hello.
    If you want to access database in the script itself (not in print program) yes, you can use PERFORM statement.
    In your script, use:
    /: PERFORM F_FORM IN PROGRAM ZRFIRFS05
    /: USING &VAR1&
    /: CHANGING &VAR2&
    /: ENDPERFORM
    Then, create a program ZPROG (ZRFIRFS05 in my case) with a structure like this one:
    REPORT ZRFIRFS05 .
    FORM f_form TABLES in_par STRUCTURE itcsy out_par STRUCTURE itcsy.
      DATA: l_data1(10).
      READ TABLE in_par WITH KEY name = 'VAR1'.
      CHECK sy-subrc = 0.
      l_data1 = in_par-value.
    *  SELECT .... "YOUR SELECT TO DATABASE
      READ TABLE out_par WITH KEY name = 'VAR2'.
      CHECK sy-subrc = 0.
      out_par-value = l_data3.
      MODIFY out_par INDEX sy-tabix.
    ENDFORM.
    Regards.
    Valter Oliveira.

  • How can I make Applet call up a JFrame??

    hello ..
    I'm making a game, and I have a flash screen done in Applet (the very first logo that appears ) so I can just load it in the browser ... someone told me that I can't make another applet that would hold the menu choices and such come up in the same browser window, so I made it into a JFrame .. so I have an Applet calling up a JFrame, and I don't know how to do that ..
    any suggestions???

    Hmm...but that doesn't put it on the screen thgou, does it?
    IIRC applets embedded in the web page cannot contain menus - you have to 'break out' your applet so that it becomes a separate window.
    To do this you would have a small standard applet embedded in your web page which then invokes your main JFrame-based application (not applet!).
    When the user loads the web page, the embedded applet starts and then launches the JFrame-based application.
    eg:
    import java.awt.*;
    import java.awt.applet.*;
    public class RunApplet extends Applet {
        public void init() {
            MyApplet myA = new MyApplet();
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    public class MyApplet extends JFrame {
        private JPanel pnlCenter;
        private JLabel lblSomeText;
        public MyApplet() {
            try {
                myInit();
            catch(Exception e) {
                e.printStackTrace();
        private void myInit() throws Exception {
            //Create components to display...
            pnlCenter = new JPanel();  //Main container inside the frame.
            lblSomeText = new JLabel("GUI stuff displays here!");
            pnlCenter.add(lblSomeText);
            //Put them on the screen...
            getContentPane().add(pnlCenter);
            //Show it...
            setTitle("My First Windowed App");
            setVisible(true);
    }Hope this helps.
    Paul.

  • How can I make internet calls from OS X 10.5.8?

    I want to make internet to landline calls with Mac OS X 10.5.8. Which applications will work with this operating system?
    I was previously using Skype until their recent compulsory upgrade, which is not compatible with my computer . A friend suggested Viber, but that also seems to require a more advanced version of OS X than my MacBook will support.
    Thank you,
    REM

    Buy a Snow Leopard DVD
    Any copies you find that can be downloaded besides being illegal are probably loaded with malware. so save yourselt the troubles and purchase a DVD.
    Allan

  • How can I make local calls without using a country code when it's in my Contacts?

    The phone numbers in my Contacts all contain country codes because I do a lot of travelling.
    An example of this might be:
    +1 (229) 123-4567
    +44 (0)12 345 6789
    +31 (0)10 2345 6789
    I have an unlocked phone so when I travel, I usually pick up a local SIM and use that to make calls.
    The problem I have is that when I am abroad and select a phone number from my contact list it doesn' work. For example, if I select a contact with the number:
    +31 (0)10 2345 6789
    A voice-recording comes on saying that the number I had dialed was incorrect.
    But when I dial the number manually:
    010 2345 6789
    It works.
    In the US I do not have this problem because for some reason, the phone knows whether the +1 is needed or not. I'm sure if it uses it at all when you're in the US. When I dial internationally from within the US, the number dialing works fine.
    So this problem only occurs when I'm dialing locally in the country I'm in while travelling outside the US.
    Anyone have any idea of why this is happening and more importantly, what I need to do to fix this? I would hate to have go and change all my contact numbers and get rid of the country codes. If I ever have to call those numbers internationally, I'll need to manually add the country code back in.
    Very annoying!
    Advice anyone?

    If you include a country number, you have to drop the initial 0 from the area code. eg +31 10 2345 6789 instead of +31 (0)10 2345 6789

  • How can I make sure the text size on front panel will be adjusted by itself from PC to PC?

    In my VIs under VI Properties -- Window Size, I checked the two boxes:
     --Maintain proportions of window for different monitor resolutions
    --Scale all objects on front panel as the window resizes
    It seems that it worked for everything on front panel except the pure text wording that I put there for instruction purpose.  The size of those text stuff didn't get changed proportionally after my application was built and run on different machines so some of them got cut off and looked messy.
    Does anyone know how to fix this problem?
    Thanks very much!

    Hi Andrew,
    Thank you for looking at my problem!
    Both my development system and test system are Window XP. The font size are all set to Normal. What other details do you need to know?
    The text on front panel shows well on my development machine. But when the .exe runs on my test machine, the text size was not adjusted by itself so the text body got cut off.
    I found a way to "fix" this problem: I had to drag the text box down and right so there is enough magin between the text body and the box on the right and at the bottom. I had to try it a few times until it finally shows well on my test machine. However, with those magins, it doesn't look nice on my development machine anymore. Also, I only tried on one test machine, if it looks good on one test machine, will it look good on all the other machines? Eventually my app is going to run on Window 7. I'll have to test that out and find out if it's still going to be a problem. Anyway, I don't feel this is the right way to do it. I hope someone knows what I'm talking about and have a soluction to it.
    Thanks very much!

  • I can't make a call but i can recieve calls

    why can't i make a call but i can recieve a call. im using TM/Globe sim and i followed sum instructions on the net. i tried updating my carrier. at first i was ignoring these pop up to make an update but now i'm searching for that pop up to make updates.
    i don't know how to fix it. i tried to call even with a strong signal connection. same things happening to me. i dial a number (e.g. - 09352908272) and at first it will make a call dialog. but after 5 secs. the call ended. at first i thought that the person im calling is declining my call, but when i tried to make another call to someone else. call ended still appears with my call
    Still i can't figure out how can i make a call. please help, thanks

    What did your carrier say when you contacted them to report the problem?

  • How can i make the installer

    i hava allmost completed my project (Java Swing and Ms Access).
    but i dont know how to make the EXE & installer. in my computer i have dual OS. one have JVM and the other have not JVM. I am using NetBeans 5.5.1 as IDE. When i am trying to run application.jar for Dos Prompt. it is running but when i am trying to it on the other OS it is not running and give an error message something " Don't have the main class..." please help me.
    How can i make a installer of my project with which i can install the package any where.

    you can use install4j utility.. it is open source so u can have a free copy..

Maybe you are looking for

  • Time Machine and a network drive combined

    I figured out how to connect Time Machine with a network drive (like LaCie Mini). It works great, the only thing is, everytime I restart the mac I need to re-connect manually to the server in order TM can run. I wondered why OS X gives not the option

  • OS X 10.5.6 Update will not install

    I have tried several times to install 10.5.6 update on my PowerBook G4 and MacBook Air. The first time I tried, it would not install on either, then it was successful on the Air. However, despite many attempts I am still getting the same message on t

  • How do I re-activate Photoshop CS3

    Today, May 21st, 2014, I received a prompt upon launching my Photoshop CS3 that made me a little wary.  I, so says the message, only have 5 days to re-activate my Photoshop before it kicks me off completely even though I have the serial ID, it has be

  • How can I insert an image into an mov file in iMovie while keeping the background music?

    I have a short MOV file movie clip that has background music but one of the images (it's a static element with text) is incorrect. How can I replace the image but keep the backgroup the same? Also what size would the image need to be to properly fit?

  • PDWordFinder does not extract text in order

    Hi, My word document had few comments. I converted the word document to PDF by File->SaveAs->Adobe PDF. I did not convert the comments to sticky notes. Hence they appear the same as in word document. My application uses PDWordFinder API to extract te