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


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

Re: opening isdn connection with external file

From nescafe <nc@ms.com>
Newsgroups comp.lang.java.programmer
Subject Re: opening isdn connection with external file
Date 2012-02-28 07:36 +0100
Organization Optima Telekom Usenet server
Message-ID <jihsm3$172$1@l01news1.ot.hr> (permalink)
References <jifr0h$8t3$1@l01news1.ot.hr> <jig902$s2h$1@dont-email.me>

Show all headers | View raw


On 02/27/2012 04:54 PM, Jeff Higgins wrote:
> 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);
> }
> }
>
ok i will try ,but just to elaborate...
The "isdn window" is external program.
Start / network connections / isdn connection.

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