Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #12430

Re: opening isdn connection with external file

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: opening isdn connection with external file
Date Mon, 27 Feb 2012 10:54:47 -0500
Organization A noiseless patient Spider
Lines 45
Message-ID <jig902$s2h$1@dont-email.me> (permalink)
References <jifr0h$8t3$1@l01news1.ot.hr>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 27 Feb 2012 15:54:42 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="BSKXKq4dV+7jFlM4JDctyw"; logging-data="28753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nuyfrVCPKbquDsh4G562NUnYzRqwGAX4="
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11
In-Reply-To <jifr0h$8t3$1@l01news1.ot.hr>
Cancel-Lock sha1:xbBJW3SqeZtUi/BU7vmpM1xQXdw=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12430

Show key headers only | View raw


On 02/27/2012 06:55 AM, nescafe wrote:
> Hello.
> Im using netbeans on my linux box but the program will be placed on
> windowz box.That's why i use .bat file. I can put this into code but
> it's simple to work with .bat file.
>
> Anyway, here is the problem...
> I have to open ISDN connection and make the dial.
> The connection is in part of local area connection and i can start it
> with netsh or devcon. This part is tested and working.
> But... to complete the process i have to click on "Dial" button.
>
> Simply put... i start the connection with my java program and connection
> awaits dial confirmation click.
>
> How to make this "click" in my java program ?
>
import javax.swing.JOptionPane;

public class OptionTest {
	
   public static void main(String[] args) {
	
     int chosenOption = JOptionPane.showConfirmDialog(
           null,
           "Confirm dial?",
           "ISDN Connection",
           JOptionPane.YES_NO_CANCEL_OPTION );

     String optionMessage;
     if (chosenOption == JOptionPane.CANCEL_OPTION) {
       optionMessage = "Cancel option chosen";
     }
     else if (chosenOption == JOptionPane.NO_OPTION) {
         optionMessage = "No option chosen";
     }
     else if (chosenOption == JOptionPane.YES_OPTION){
         optionMessage = "Yes option chosen";
     }
     else {optionMessage = "Unexpected Option";}

     JOptionPane.showMessageDialog(null, optionMessage);
   }
}

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-27 12:55 +0100
  Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-27 10:54 -0500
    Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-28 07:36 +0100
      Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-28 08:17 +0100
        Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-28 05:56 -0500
          Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-28 07:16 -0500
        Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-28 08:23 -0500
          Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-28 08:46 -0500
        Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-02-28 09:24 -0800
          Re: opening isdn connection with external file Jeff Higgins <jeff@invalid.invalid> - 2012-02-28 13:34 -0500
            Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-02-28 12:54 -0800
              Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-29 07:18 +0100
                Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-02-28 22:29 -0800
                Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-29 09:44 +0100
                Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-02-29 00:48 -0800
                Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-02-29 11:40 +0100
                Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-02-29 10:06 -0800
                Re: opening isdn connection with external file nescafe <nc@ms.com> - 2012-03-02 11:08 +0100
                Re: opening isdn connection with external file Lew <noone@lewscanon.com> - 2012-03-02 02:32 -0800

csiph-web