Examples of JPortalInternalFrame


Examples of csa.jportal.gui.JPortalInternalFrame

                    aName = aName.substring(nameStart+1);
                    list.addElement(aName);
                }
            }
        }
        JPortalInternalFrame frame = new JPortalInternalFrame();
        final GetSelectionDialog c = new GetSelectionDialog(frame, list);
        frame.addPanel(c);
        mParent.addInternalFrame(frame);
        frame.setTitle("Select a Name");
        frame.setSize(400, 130);
        frame.setVisible(true);
        frame.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter() {
            @Override
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {

                CardDeckListEditPanel cx = new CardDeckListEditPanel(c.getString(), getQuestMatchPoolBaseName());
                cx.setPresetMode(true);
View Full Code Here

Examples of csa.jportal.gui.JPortalInternalFrame

                }
            }, test.mAfterRounds);
            if (match.didMatchStart())
            {
                Match.mGameStarted = true;
                JPortalInternalFrame frame = null;
                if (jCheckBoxDebug.isSelected())
                {
                    frame = mParent.showEAIDebug((mAITestData.mFixedAINumber+1)%2, match);
                }
// must be set in order for all
// old AI actions to work,
// since it sometimes refferences match.Match.getLife() - e.g.
Match.match = match;
                match.startMatch();
               
                mBreak = false;
//                synchronized (this)
                {
                    try
                    {
                        while (!mBreak)
                        {
                            testerThread.sleep(100);
                            if (match.isPause())
                            {
                                jLabelRunning.setForeground(new java.awt.Color(204,0, 0));
                                jLabelRunning.setText("Pause!");
                                jButtonUnpause.setVisible(true);
                                unpauseMatch = match;
                            }
                            else
                            {
                                jLabelRunning.setForeground(new java.awt.Color(0, 204, 0));
                                jLabelRunning.setText("Running!");
                                jButtonUnpause.setVisible(false);
                                unpauseMatch = null;
                            }
                            if (mBreak)
                            {
                                continue;
                            }
                        }
                    }
                    catch (InterruptedException e)
                    {
                        System.out.println(e);
        
                    }
                    catch (Throwable e)
                    {
                        System.out.println(e);
                        e.printStackTrace();
                    }
                }
                if (frame != null)
                {
                    try
                    {
                        frame.setClosed(true);
                    }
                    catch (Throwable e) {}
                }
Match.match = null;
                Match.mGameStarted = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.