Look at bottom code. It is a part of a simple GUI window. It has (currently)
50+ fields. With a good design, maybe most of these fields can be taken into
functions or can be seperated to multiple calasses but still, while porting
from JBuilder, Forte or similiar tools, this area becomes  very huge. At
this point, folding can have a life saving role. Don't you think so?
Sincerely..

Gokcer Gokdal
Odesa Inf. Tech. Inc.

public class Gui extends JFrame {
    JPanel contentPane;
    //*****************for About Frame
    JLabel lblLogo;
    JLabel lblAboutInfo = new JLabel();
    JLabel lblAboutInfo2 = new JLabel();
    JLabel lblAboutInfo3 = new JLabel();
    JPanel pnlAbout;
    JButton btnAbout;
    JButton btnAboutClose;
    JButton btnCopyToClpboard;
    JPanel pnlAboutOrta = new JPanel();
    JPanel pnlAboutUst = new JPanel();
    JPanel pnlAboutAlt = new JPanel();
    JPanel pnlAboutUstSol = new JPanel();
    JPanel pnlAboutUstSag = new JPanel();
    //****************************
    JPanel pnlOrta = new JPanel();
    JPanel pnlUst = new JPanel();
    JPanel pnlAlt = new JPanel();
    JPanel pnlOrtaAlt = new JPanel();
    JPanel pnlOrtaUst = new JPanel();
    JPanel pnl1 = new JPanel();
    JPanel pnl2 = new JPanel();
    JButton btnOk = new JButton();
    JButton btnCancel = new JButton();

    JLabel lblInline = new JLabel();
    //JLabel lblOutline = new JLabel();
    TextArea lblOutline = new TextArea("", 1, 50,
TextArea.SCROLLBARS_VERTICAL_ONLY);
    boolean isProceedBefore = false;

    /** Name of the output file*/
    JDialog about_frame;
    Vector vInFile = new Vector();
    Vector vOutFile = new Vector();
    ErrorDlg err = new ErrorDlg();
    Parser p;
    private JPanel jPanel1 = new JPanel();
    private BorderLayout borderLayout1 = new BorderLayout();
    private GridLayout gridLayout1 = new GridLayout();
    private JPanel jPanel2 = new JPanel();
    private BorderLayout borderLayout2 = new BorderLayout();
    private JFileChooser fileChooser = new JFileChooser(".");
  private JPanel jPanel5 = new JPanel();
  private JPanel jPanel6 = new JPanel();
  private BorderLayout borderLayout3 = new BorderLayout();
  private JLabel lblSource = new JLabel();
  private JTextField txtSource;
  private JLabel lblDest = new JLabel();
  private JTextField txtDest;
  private GridLayout gridLayout3 = new GridLayout();
  private BorderLayout borderLayout4 = new BorderLayout();
  private JButton jButton1 = new JButton();
  private JButton jButton2 = new JButton();
  private TitledBorder titledBorder1;
  private JMenuItem jMenuItemExit = new JMenuItem();
  private JMenuItem jMenuItemAbout = new JMenuItem();
  private JMenuBar jMenuBar1 = new JMenuBar();
  private JMenu jMenu2 = new JMenu();
  private JMenuItem jMenuItemSetInputFile = new JMenuItem();
  private JMenu jMenu1 = new JMenu();
  private JMenuItem jMenuItemSetOutputFile = new JMenuItem();
  private JScrollPane jScrollPane1 = new JScrollPane();
  private JList lst1;
  private JScrollPane jScrollPane2 = new JScrollPane();
  private JList lst2;
  private JMenu jMenu3 = new JMenu();
  private JMenuItem jMenuItemStartOp = new JMenuItem();

// ...
// From here, class methods..

} // End of class


"Thomas Singer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What do you mean with class members and the pointer to GUI classes?
> I know a lot of GUI classes, but never felt the need to fold them or
> parts of them. Please explain.
>
> Tom
>
>
> On Sun, 14 Jul 2002 10:22:23 +0300, "Gokcer Gokdal" <[EMAIL PROTECTED]>
> wrote:
>
> >Folding imports and javadocs is great. What about class members. It will
be
> >especially useful for GUI classes.
> >
> >Sincerely..
> >
> >
>




_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to