// --------------------------------------------------------------------------- // jWebSocket - Copyright (c) 2010 Innotrade GmbH // --------------------------------------------------------------------------- // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published by the // Free Software Foundation; either version 3 of the License, or (at your // option) any later version. // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for // more details. // You should have received a copy of the GNU Lesser General Public License along // with this program; if not, see <http://www.gnu.org/licenses/lgpl.html>. // --------------------------------------------------------------------------- /* * Preferences.java * * Created on Mar 15, 2010, 2:56:00 PM */ package org.jwebsocket.ui; /** * * @author aschulze */ public class Preferences extends javax.swing.JFrame { /** Creates new form Preferences */ public Preferences() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lblNodeId = new javax.swing.JLabel(); lblURL = new javax.swing.JLabel(); lblUsername = new javax.swing.JLabel(); lblPassword = new javax.swing.JLabel(); txfServerURL = new javax.swing.JTextField(); txfNodeId = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jPasswordField1 = new javax.swing.JPasswordField(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new java.awt.GridBagLayout()); lblNodeId.setText("Node-Id"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; getContentPane().add(lblNodeId, gridBagConstraints); lblURL.setText("Server-URL"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; getContentPane().add(lblURL, gridBagConstraints); lblUsername.setText("Username"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; getContentPane().add(lblUsername, gridBagConstraints); lblPassword.setText("Password"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; getContentPane().add(lblPassword, gridBagConstraints); txfServerURL.setText("ws://localhost:8787"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; getContentPane().add(txfServerURL, gridBagConstraints); txfNodeId.setText("node1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; getContentPane().add(txfNodeId, gridBagConstraints); jTextField3.setText("guest"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; getContentPane().add(jTextField3, gridBagConstraints); jPasswordField1.setText("guest"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; getContentPane().add(jPasswordField1, gridBagConstraints); jLabel1.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N jLabel1.setText("Preferences"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; getContentPane().add(jLabel1, gridBagConstraints); pack(); }// </editor-fold>//GEN-END:initComponents /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new Preferences().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; private javax.swing.JPasswordField jPasswordField1; private javax.swing.JTextField jTextField3; private javax.swing.JLabel lblNodeId; private javax.swing.JLabel lblPassword; private javax.swing.JLabel lblURL; private javax.swing.JLabel lblUsername; private javax.swing.JTextField txfNodeId; private javax.swing.JTextField txfServerURL; // End of variables declaration//GEN-END:variables }