Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #12475
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.CARNet.hr!news.optima.hr!.POSTED!not-for-mail |
|---|---|
| From | nescafe <nc@ms.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: opening isdn connection with external file |
| Date | Tue, 28 Feb 2012 07:36:47 +0100 |
| Organization | Optima Telekom Usenet server |
| Lines | 49 |
| Message-ID | <jihsm3$172$1@l01news1.ot.hr> (permalink) |
| References | <jifr0h$8t3$1@l01news1.ot.hr> <jig902$s2h$1@dont-email.me> |
| NNTP-Posting-Host | 85.114.42.50 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | l01news1.ot.hr 1330411011 1250 85.114.42.50 (28 Feb 2012 06:36:51 GMT) |
| X-Complaints-To | abuse@optinet.hr |
| NNTP-Posting-Date | Tue, 28 Feb 2012 06:36:51 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
| In-Reply-To | <jig902$s2h$1@dont-email.me> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12475 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar
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