|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.web.project.ui; import javax.swing.JPanel; import javax.swing.event.ChangeListener; public class BrokenReferencesAlertPanel extends JPanel { public BrokenReferencesAlertPanel() { initComponents(); again.setSelected(FoldersListSettings.getDefault().isShowAgainBrokenRefAlert()); } /** 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. */ private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; jScrollPane1 = new javax.swing.JScrollPane(); message = new javax.swing.JTextArea(); again = new javax.swing.JCheckBox(); setLayout(new java.awt.GridBagLayout()); setPreferredSize(new java.awt.Dimension(350, 100)); jScrollPane1.setBorder(null); message.setEditable(false); message.setLineWrap(true); message.setText(org.openide.util.NbBundle.getMessage(BrokenReferencesAlertPanel.class, "MSG_Broken_References")); message.setWrapStyleWord(true); message.setOpaque(false); jScrollPane1.setViewportView(message); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.9; gridBagConstraints.insets = new java.awt.Insets(11, 11, 0, 0); add(jScrollPane1, gridBagConstraints); again.setSelected(true); again.setText(org.openide.util.NbBundle.getMessage(BrokenReferencesAlertPanel.class, "MSG_Broken_References_Again")); again.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { againActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(6, 11, 0, 0); add(again, gridBagConstraints); }//GEN-END:initComponents private void againActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_againActionPerformed FoldersListSettings.getDefault().setShowAgainBrokenRefAlert(again.isSelected()); }//GEN-LAST:event_againActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JCheckBox again; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTextArea message; // End of variables declaration//GEN-END:variables } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.