Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #12488
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: opening isdn connection with external file |
| Date | 2012-02-28 08:23 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jiikg0$8f4$1@dont-email.me> (permalink) |
| References | <jifr0h$8t3$1@l01news1.ot.hr> <jig902$s2h$1@dont-email.me> <jihsm3$172$1@l01news1.ot.hr> <jihv2j$277$1@l01news1.ot.hr> |
On 02/28/2012 02:17 AM, nescafe wrote:
> /*
> * KutinaApp.java
> */
>
> package kutina;
> import javax.swing.JOptionPane;
> import org.jdesktop.application.Application;
> import org.jdesktop.application.SingleFrameApplication;
>
> public class KutinaApp extends SingleFrameApplication {
>
> @Override protected void startup() {
> show(new KutinaView(this));
> }
> @Override protected void configureWindow(java.awt.Window root) {
> }
> public static KutinaApp getApplication() {
> return Application.getInstance(KutinaApp.class);
> }
>
> //--------------------------------------------------------------------------
>
> public class JOptionPaneTest1 {
>
> public static void main(String[] args) {
> //******** inner class cannot have static declarations ************
>
> launch(KutinaApp.class, args );
Try this:
Application.launch(KutinaApp.class, args );
>
> //-----------------------
You probably want to put your Confirm Dial-out in an action.
> int chosenOption = JOptionPane.showConfirmDialog(
> null,
> "Call?",
> "ISDN",
> JOptionPane.YES_NO_CANCEL_OPTION );
>
> String optionMessage;
> if (chosenOption == JOptionPane.CANCEL_OPTION) {
> optionMessage = "Cancel";
> }
> else if (chosenOption == JOptionPane.YES_OPTION){
> optionMessage = "Confirm";
> }
> else {optionMessage = "Error";}
>
> JOptionPane.showMessageDialog(null, optionMessage);
> }
> }
> }
> -------------------------
> I get error : inner classes cannot have static declarations ?
> I googleit but all examples are the same and there should be no error.
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