Initializes the ControlInterface associated with this ControlField
961233
protected AptControlInterface initControlInterface()
    {
        TypeMirror controlType = _fieldDecl.getType();
        if (! (controlType instanceof DeclaredType))
        {
            _ap.printError( _fieldDecl, "control.field.bad.type" );
            return null;
        }

        //
        // The field can either be declared as the bean type or the public interface type.
        // If it is the bean type, then we need to reflect to find the public interface
        // type it implements.
        //
        TypeDeclaration typeDecl = ((DeclaredType)controlType).getDeclaration();
        InterfaceDeclaration controlIntf = null;

        //
        // It is possible that the declared type is associated with a to-be-generated
        // bean type.  In this case, look for the associated control interface on the
        // processor input list.
        //
        if ( typeDecl == null )
        {
            String className = controlType.toString();
            String intfName = className.substring(0, className.length() - 4);
            String interfaceHint = getControlInterfaceHint();
            controlIntf = (InterfaceDeclaration)_ap.getAnnotationProcessorEnvironment().getTypeDeclaration(intfName);

            if (controlIntf == null)
            {
                // The specified class name may not be fully qualified.  In this case, the
                // best we can do is look for a best fit match against the input types
                for (TypeDeclaration td :_ap.getAnnotationProcessorEnvironment().getSpecifiedTypeDeclarations())
                {
                    // if an interface hint was provided, use it to find the control interface,
                    // if not provided try to find the control interface by matching simple names.
                    if (interfaceHint != null) {
                        if (td instanceof InterfaceDeclaration &&
                                td.getQualifiedName().equals(interfaceHint))
                        {
                            controlIntf = (InterfaceDeclaration)td;
                            break;
                        }
                    }
                    else {
                        if (td instanceof InterfaceDeclaration &&
                            td.getSimpleName().equals(intfName))
                        {
                            controlIntf = (InterfaceDeclaration)td;
                            break;
                        }
                    }
                }
            }
        }
        else if (typeDecl instanceof ClassDeclaration)
        {
            Collection<InterfaceType> implIntfs = ((ClassDeclaration)typeDecl).getSuperinterfaces();
            for (InterfaceType intfType : implIntfs)
            {
                InterfaceDeclaration intfDecl = intfType.getDeclaration();

                if ( intfDecl == null )
                    return null;
                
                if (intfDecl.getAnnotation(ControlInterface.class) != null||
                    intfDecl.getAnnotation(ControlExtension.class) != null)
                {
                    controlIntf = intfDecl;
                    break;
                }
            }
        }
        else if (typeDecl instanceof InterfaceDeclaration)
        {
            controlIntf = (InterfaceDeclaration)typeDecl;
        }

        if (controlIntf == null)
        {
            _ap.printError( _fieldDecl, "control.field.bad.type.2" );
            return null;
        }

        return new AptControlInterface(controlIntf, _ap);
    }
356522
@Override
	public void initDownstream()
	{
		for (Entity entity : interaction.getParticipant())
		{
			addToDownstream(entity, getGraph());
		}
		for (Control control : interaction.getControlledOf())
		{
			addToDownstream(control, getGraph());
		}
	}
164801
protected void initComponent()
	{
		addOrReplace(form = newForm("form", getModel()));
		form.addOrReplace(signupPanel = newSignupPanel("signupPanel", getModel()));

		form.addOrReplace(submitButton = newButton("signupButton"));
		submitButton.add(
			buttonLabel = newButtonLabel("buttonLabel", "global.button.sign.up.label", "Sign up"));
		form.add(submitButton);

		form.add(new EqualPasswordInputValidator(
			signupPanel.getSigninPanel().getPassword().getPasswordTextField(),
			signupPanel.getRepeatPassword().getPasswordTextField()));
	}
752878
protected void initControlListeners() {
        // if the control got resized the overlay rect must be rest
        control.layoutBoundsProperty().addListener(observable -> resetRippler());
        if(getChildren().contains(control))
            control.boundsInParentProperty().addListener(observable -> resetRippler());
        control.addEventHandler(MouseEvent.MOUSE_PRESSED,
            (event) -> createRipple(event.getX(), event.getY()));
        // create fade out transition for the ripple
        control.addEventHandler(MouseEvent.MOUSE_RELEASED, e -> releaseRipple());
    }
1309773
protected void init() {

        m_elementMappings = new HashMap<String, List<String>>();
        m_elementWidgets = new HashMap<String, I_CmsWidget>();
        m_validationErrorRules = new HashMap<String, String>();
        m_validationErrorMessages = new HashMap<String, String>();
        m_validationWarningRules = new HashMap<String, String>();
        m_validationWarningMessages = new HashMap<String, String>();
        m_defaultValues = new HashMap<String, String>();
        m_configurationValues = new HashMap<String, String>();
        m_searchSettings = new HashMap<String, Boolean>();
        m_relations = new HashMap<String, CmsRelationType>();
        m_relationChecks = new HashMap<String, Boolean>();
        m_previewLocation = null;
        m_modelFolder = null;
        m_tabs = new ArrayList<CmsXmlContentTab>();
        m_cssHeadIncludes = new LinkedHashSet<String>();
        m_jsHeadIncludes = new LinkedHashSet<String>();
        m_settings = new LinkedHashMap<String, CmsXmlContentProperty>();
        m_titleMappings = new ArrayList<String>(2);
        m_formatters = new ArrayList<CmsFormatterBean>();
        m_searchFields = new HashMap<String, CmsSearchField>();
        m_searchFieldsPage = new HashMap<String, CmsSearchField>();
        m_allowedTemplates = new CmsDefaultSet<String>();
        m_allowedTemplates.setDefaultMembership(true);
        m_displayTypes = new HashMap<String, DisplayType>();
        m_synchronizations = new ArrayList<String>();
        m_editorChangeHandlers = new ArrayList<I_CmsXmlContentEditorChangeHandler>();
        m_nestedFormatterElements = new HashSet<String>();
        try (
        InputStream stream = CmsDefaultXmlContentHandler.class.getResourceAsStream("simple-searchsetting-configs.st")) {
            m_searchTemplateGroup = CmsStringUtil.readStringTemplateGroup(stream);
        } catch (IOException e) {
            LOG.error(e.getLocalizedMessage(), e);
        }
    }
40874
private void initComponents() {

		splMainSplitter = new javax.swing.JSplitPane();
		pnlDataBrowser = new javax.swing.JPanel();
		splSqlQuery = new javax.swing.JSplitPane();
		pnlEditor = new javax.swing.JPanel();
		pnlDataSet = new javax.swing.JPanel();
		lblDataSet = new javax.swing.JLabel();
		cboDataSet = new javax.swing.JComboBox();
		cmdExecute = new javax.swing.JButton();
		pnlQueryEditor = new javax.swing.JPanel();
		scrQueryEditor = new javax.swing.JScrollPane();
		txtQueryEditor = new javax.swing.JEditorPane();
		pnlResultFilter = new javax.swing.JPanel();
		lblShow = new javax.swing.JLabel();
		txtRowCount = new javax.swing.JTextField();
		lblRows = new javax.swing.JLabel();
		pnlResult = new javax.swing.JPanel();
		scrQueryResult = new javax.swing.JScrollPane();
		pnlOntologyBrowser = new javax.swing.JPanel();
		pnlConcept = new javax.swing.JPanel();
		pnlFocusURI = new javax.swing.JPanel();
		lblFocusOnURI = new javax.swing.JLabel();
		txtClassUriTemplate = new javax.swing.JTextField();
		pnlClassMap = new javax.swing.JPanel();
		pnlClassSeachComboBox = new javax.swing.JPanel();
		lblClass = new javax.swing.JLabel();
		pnlProperties = new javax.swing.JPanel();
		pnlPropertiesLabel = new javax.swing.JPanel();
		lblProperties = new javax.swing.JLabel();
		pnlPropertyList = new javax.swing.JPanel();
		pnlCommandButtons = new javax.swing.JPanel();
		cmdClearAll = new javax.swing.JButton();
		cmdCreateMapping = new javax.swing.JButton();

		setAlignmentX(5.0F);
		setAlignmentY(5.0F);
		setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
		setName("panel_master"); // NOI18N
		setPreferredSize(new java.awt.Dimension(640, 480));
		setLayout(new java.awt.BorderLayout());

		splMainSplitter.setDividerLocation(0.75);
		splMainSplitter.setResizeWeight(0.75);

		pnlDataBrowser.setName("panel_databrowser"); // NOI18N
		pnlDataBrowser.setLayout(new java.awt.BorderLayout());

		splSqlQuery.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
		splSqlQuery.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
		splSqlQuery.setResizeWeight(0.25);
		splSqlQuery.setMinimumSize(new java.awt.Dimension(550, 400));
		splSqlQuery.setPreferredSize(new java.awt.Dimension(550, 400));

		pnlEditor.setMinimumSize(new java.awt.Dimension(156, 100));
		pnlEditor.setPreferredSize(new java.awt.Dimension(156, 100));
		pnlEditor.setLayout(new java.awt.BorderLayout());

		pnlDataSet.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

		lblDataSet.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblDataSet.setForeground(new java.awt.Color(53, 113, 163));
		lblDataSet.setText("Data Set:");
		pnlDataSet.add(lblDataSet);

		cboDataSet.setMinimumSize(new java.awt.Dimension(23, 23));
		cboDataSet.setPreferredSize(new java.awt.Dimension(240, 23));
		cboDataSet.setRenderer(new DataSetItemRenderer());
		cboDataSet.addActionListener(this::cboDataSetActionPerformed);
		pnlDataSet.add(cboDataSet);

		cmdExecute.setToolTipText("Execute query");
		cmdExecute.setIcon(IconLoader.getImageIcon("images/execute.png"));
		cmdExecute.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdExecute.setContentAreaFilled(false);
		cmdExecute.setPreferredSize(new java.awt.Dimension(25, 25));
		cmdExecute.addActionListener(this::cmdExecuteActionPerformed);
		pnlDataSet.add(cmdExecute);

		pnlEditor.add(pnlDataSet, java.awt.BorderLayout.PAGE_START);

		pnlQueryEditor.setLayout(new java.awt.BorderLayout());

		txtQueryEditor.setBorder(null);
		txtQueryEditor.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N
		txtQueryEditor.setMinimumSize(new java.awt.Dimension(100, 20));
		txtQueryEditor.setPreferredSize(new java.awt.Dimension(100, 20));
		txtQueryEditor.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtQueryEditorKeyPressed(evt);
			}
		});
		scrQueryEditor.setViewportView(txtQueryEditor);

		pnlQueryEditor.add(scrQueryEditor, java.awt.BorderLayout.CENTER);

		pnlEditor.add(pnlQueryEditor, java.awt.BorderLayout.CENTER);

		pnlResultFilter.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

		lblShow.setText("Show");
		pnlResultFilter.add(lblShow);

		txtRowCount.setText("20");
		txtRowCount.setToolTipText("Insert the limit for data preview or 0 to present all data");
		txtRowCount.setMinimumSize(new java.awt.Dimension(25, 18));
		txtRowCount.setPreferredSize(new java.awt.Dimension(25, 18));
		txtRowCount.addFocusListener(new java.awt.event.FocusAdapter() {
			@Override
			public void focusLost(java.awt.event.FocusEvent evt) {
				txtRowCountFocusLost(evt);
			}
		});
		txtRowCount.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtRowCountKeyPressed(evt);
			}
		});
		pnlResultFilter.add(txtRowCount);

		lblRows.setText("rows");
		pnlResultFilter.add(lblRows);

		pnlEditor.add(pnlResultFilter, java.awt.BorderLayout.PAGE_END);

		splSqlQuery.setLeftComponent(pnlEditor);

		pnlResult.setLayout(new java.awt.BorderLayout());

		tblQueryResult = new SQLResultTable();
		tblQueryResult.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
		scrQueryResult.setViewportView(tblQueryResult);
		scrQueryResult.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
		pnlResult.add(scrQueryResult, java.awt.BorderLayout.CENTER);

		splSqlQuery.setRightComponent(pnlResult);

		pnlDataBrowser.add(splSqlQuery, java.awt.BorderLayout.CENTER);

		splMainSplitter.setLeftComponent(pnlDataBrowser);

		pnlOntologyBrowser.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 3, 0, 3));
		pnlOntologyBrowser.setName("panel_ontologybrowser"); // NOI18N
		pnlOntologyBrowser.setLayout(new java.awt.BorderLayout(0, 2));

		pnlConcept.setLayout(new java.awt.BorderLayout(0, 2));

		pnlFocusURI.setLayout(new java.awt.BorderLayout());

		lblFocusOnURI.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblFocusOnURI.setForeground(new java.awt.Color(53, 113, 163));
		lblFocusOnURI.setText("Focus on URI:");
		pnlFocusURI.add(lblFocusOnURI, java.awt.BorderLayout.NORTH);

		txtClassUriTemplate.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N
		txtClassUriTemplate.setText(defaultUriTemplate());
		txtClassUriTemplate.setMargin(new java.awt.Insets(0, 0, 0, 0));
		txtClassUriTemplate.setMinimumSize(new java.awt.Dimension(240, 23));
		txtClassUriTemplate.setPreferredSize(new java.awt.Dimension(240, 23));
		txtClassUriTemplate.addFocusListener(new java.awt.event.FocusAdapter() {
			@Override
			public void focusGained(java.awt.event.FocusEvent evt) {
				txtClassUriTemplateFocusGained(evt);
			}
			@Override
			public void focusLost(java.awt.event.FocusEvent evt) {
				txtClassUriTemplateFocusLost(evt);
			}
		});
		txtClassUriTemplate.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtClassUriTemplateKeyPressed(evt);
			}
		});
		pnlFocusURI.add(txtClassUriTemplate, java.awt.BorderLayout.SOUTH);

		pnlConcept.add(pnlFocusURI, java.awt.BorderLayout.NORTH);

		pnlClassMap.setBackground(new Color(240, 245, 240));
		pnlClassMap.setLayout(new java.awt.BorderLayout());

		pnlClassSeachComboBox.setLayout(new java.awt.BorderLayout());
		Vector<Object> v = new Vector<>();
		for (IRI c : obdaModel.getCurrentVocabulary().classes()) {
			v.addElement(new PredicateItem(c, CLASS, prefixManager));
		}
		cboClassAutoSuggest = new AutoSuggestComboBox(v);
		cboClassAutoSuggest.setRenderer(new ClassListCellRenderer());
		cboClassAutoSuggest.setMinimumSize(new java.awt.Dimension(195, 23));
		cboClassAutoSuggest.setPreferredSize(new java.awt.Dimension(195, 23));
		cboClassAutoSuggest.addItemListener(new java.awt.event.ItemListener () {
			@Override
			public void itemStateChanged(java.awt.event.ItemEvent evt) {
				cboClassAutoSuggestItemStateChanged(evt);
			}
		});
		JTextField txtComboBoxEditor = (JTextField) cboClassAutoSuggest.getEditor().getEditorComponent();
		txtComboBoxEditor.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				cboClassAutoSuggestKeyPressed(evt);
			}
		});
		pnlClassSeachComboBox.add(cboClassAutoSuggest, java.awt.BorderLayout.CENTER);
		pnlClassMap.add(pnlClassSeachComboBox, java.awt.BorderLayout.SOUTH);

		lblClass.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblClass.setForeground(new java.awt.Color(53, 113, 163));
		lblClass.setText("Mapping for class (optional):");
		lblClass.setOpaque(true);
		pnlClassMap.add(lblClass, java.awt.BorderLayout.NORTH);

		pnlConcept.add(pnlClassMap, java.awt.BorderLayout.CENTER);

		pnlOntologyBrowser.add(pnlConcept, java.awt.BorderLayout.NORTH);

		pnlProperties.setLayout(new java.awt.BorderLayout(0, 3));

		pnlPropertiesLabel.setMinimumSize(new java.awt.Dimension(63, 30));
		pnlPropertiesLabel.setLayout(new java.awt.BorderLayout());

		lblProperties.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblProperties.setForeground(new java.awt.Color(53, 113, 163));
		lblProperties.setText("Add new property mapping:");
		lblProperties.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
		lblProperties.setOpaque(true);
		lblProperties.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
		pnlPropertiesLabel.add(lblProperties, java.awt.BorderLayout.CENTER);

		pnlProperties.add(pnlPropertiesLabel, java.awt.BorderLayout.NORTH);

		pnlPropertyList.setLayout(new java.awt.BorderLayout());

		pnlPropertyEditorList = new PropertyMappingPanel(obdaModel);
		pnlPropertyList.add(pnlPropertyEditorList);

		pnlProperties.add(pnlPropertyList, java.awt.BorderLayout.CENTER);

		pnlOntologyBrowser.add(pnlProperties, java.awt.BorderLayout.CENTER);

		pnlCommandButtons.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 0, 0, 0));
		pnlCommandButtons.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

		cmdClearAll.setText("Clear All");
		cmdClearAll.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdClearAll.setContentAreaFilled(false);
		cmdClearAll.setPreferredSize(new java.awt.Dimension(70, 25));
		cmdClearAll.addActionListener(this::cmdClearAllActionPerformed);
		pnlCommandButtons.add(cmdClearAll);

		cmdCreateMapping.setText("Create Mapping");
		cmdCreateMapping.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdCreateMapping.setContentAreaFilled(false);
		cmdCreateMapping.setPreferredSize(new java.awt.Dimension(100, 25));
		cmdCreateMapping.addActionListener(this::cmdCreateMappingActionPerformed);
		pnlCommandButtons.add(cmdCreateMapping);

		pnlOntologyBrowser.add(pnlCommandButtons, java.awt.BorderLayout.SOUTH);

		splMainSplitter.setRightComponent(pnlOntologyBrowser);

		add(splMainSplitter, java.awt.BorderLayout.CENTER);
	}
10326
public void initialize()
    {
        super.initialize();

        //
        // Register the ServletService classes associated with the ServletServiceProvider
        //
        ServletServiceProvider ssp = ServletServiceProvider.getProvider();
        addService(ServletContext.class, ssp);
        addService(ServletRequest.class, ssp);
        addService(ServletResponse.class, ssp);
        addService(HttpServletRequest.class, ssp);
        addService(HttpServletResponse.class, ssp);

        //
        // Register an *internal* service that is used to create ControlBeanContext objects for
        // children of this control container
        //
        _bcsp = WebContextFactoryProvider.getProvider();
        addService(ControlBeanContextFactory.class, _bcsp);
    }
590836
public void init(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties)
    {
        super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties);
    }
1339530
private void initialize() {
    this.setSize(300, 200);
    this.setTitle("Connect");
    this.setContentPane(getJContentPane());
    this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    this.addWindowListener(new WindowAdapter() {
      public void windowClosed(WindowEvent e) {
        cancelTimeout();
      }
    });

    Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
      public void eventDispatched(AWTEvent e) {
        if ((e instanceof KeyEvent && ((KeyEvent) e).getID() == KeyEvent.KEY_PRESSED)
            || (e instanceof MouseEvent && ((MouseEvent) e).getID() == MouseEvent.MOUSE_PRESSED)) {
          if (ConnectionDialog.this.isAncestorOf(((ComponentEvent) e).getComponent())) {
            cancelTimeout();
          }
        }
      }
    }, AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);
    restore();
  }
1232971
private void resetControlID()
    {
        _controlID = null;
        for (Object child : this) {
            if (child instanceof ControlBeanContext)
                ((ControlBeanContext) child).resetControlID();
        }
    }
77072
static void init() {
		initialContextFactory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
		System.setProperty(Context.INITIAL_CONTEXT_FACTORY,
				MonitoringInitialContextFactory.class.getName());
	}
943788
private void initComponents() {
        setTitle("Validation Framework Test");
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        // Create content pane
        String notForNimbus;
        if ("Nimbus".equals(UIManager.getLookAndFeel().getName())) {
            notForNimbus = "";
        } else {
            notForNimbus = "related[]";
        }
        JPanel contentPane = new JPanel(new MigLayout("fill, wrap 2", "[]related[grow]", "[]20[]related[]" +
                notForNimbus + "related[]related[]unrelated[]"));
        setContentPane(contentPane);

        JLabel infoLabel = new JLabel("Fill in the fields with less than 10 characters.");
        infoLabel.setForeground(Color.GRAY);
        contentPane.add(infoLabel, "span 2");

        // Input fields
        contentPane.add(new JLabel("Sticker:"));
        textField1 = new JTextField();
        contentPane.add(textField1, "growx");
        contentPane.add(new JLabel("Foreground color:"));
        textField2 = new JTextField();
        contentPane.add(textField2, "growx");
        textField3 = new JTextField();
        if (!notForNimbus.isEmpty()) {
            // Changing the background color of a textfield with the Nimbus is not easy...
            contentPane.add(new JLabel("Background color:"));
            contentPane.add(textField3, "growx");
        }
        contentPane.add(new JLabel("Icon:"));
        textField4 = new JTextField();
        contentPane.add(textField4, "growx");
        contentPane.add(new JLabel("Icon with tooltip:"));
        textField5 = new JTextField();
        contentPane.add(textField5, "growx");

        // Apply button
        applyButton = new JButton("Apply");
        contentPane.add(applyButton, "skip 1, right aligned");

        // Set size
        pack();
        Dimension size = getSize();
        size.width += 100;
        setMinimumSize(size);

        // Set location
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        setLocation((screenSize.width - size.width) / 2, (screenSize.height - size.height) / 3);
    }
511374
protected AptControlInterface initControlInterface()
    {
        TypeMirror fieldType = _fieldDecl.getType();        
        if (! (fieldType instanceof InterfaceType))
        {
            _ap.printError( _fieldDecl, "context.field.badinterface" );
            return null;
        }

        //
        // For contextual services, the declared type of the field is always the public
        // interface for the contextual service.
        //
        return new AptControlInterface(((InterfaceType)_fieldDecl.getType()).getDeclaration(), 
                                       _ap);
    }
372548
private void initComponents() {

        foundModel = new DefaultListModel<>();
        progressModel = new DefaultListModel<>();
        contentPanel = new JPanel();
        secondPanel = new JPanel();
        jScrollPane1 = new JScrollPane();
        jScrollPane2 = new JScrollPane();
        jList1 = new JList<>();
        jList2 = new JList<>();
        jLabel1 = new JLabel();
        jLabel2 = new JLabel();
        jLabel3 = new JLabel();
        firstPanel = new JPanel();
        sourceRootLabel = new JLabel();
        sourceRootBox = new JTextField();
        srcFileIconLabel = new JLabel();
        card1TitleLabel = new JLabel();
        chooser = new JFileChooser();
        browseButton = new JButton();
        card1Explanation1Label = new JLabel();
        card1Explanation2Label = new JLabel();
        card1Explanation3Label = new JLabel();
        previousButton = new JButton();
        nextButton = new JButton();
        finshButton = new JButton();
        errorMessageLabel = new JLabel();
        Dimension d = new Dimension(600, 425);
        this.setPreferredSize(d);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("SpotBugs Source Directory Configuration Wizard");
        getContentPane().setLayout(null);

        jList2.setModel(progressModel);

        contentPanel.setLayout(new CardLayout());

        secondPanel.setLayout(null);

        jScrollPane1.setViewportView(jList1);

        secondPanel.add(jScrollPane1);
        jScrollPane1.setBounds(250, 50, 258, 130);

        jLabel1.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel1.setText("Source directories found:");
        secondPanel.add(jLabel1);
        jLabel1.setBounds(250, 30, 173, 17);

        jLabel2.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel2.setText("Click Finish to accept this");
        secondPanel.add(jLabel2);
        jLabel2.setBounds(40, 90, 173, 17);

        jLabel3.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel3.setText("list of source directories");
        secondPanel.add(jLabel3);
        jLabel3.setBounds(40, 110, 165, 17);

        contentPanel.add(secondPanel, "card2");

        jScrollPane2.setViewportView(jList2);

        firstPanel.add(jScrollPane2);
        jScrollPane2.setBounds(200, 250, 250, 75);

        firstPanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
        firstPanel.setLayout(null);

        sourceRootLabel.setText("Top-level source directory:");
        firstPanel.add(sourceRootLabel);
        sourceRootLabel.setBounds(30, 220, 168, 17);
        firstPanel.add(sourceRootBox);
        sourceRootBox.setBounds(200, 210, 250, 29);

        srcFileIconLabel.setIcon(new ImageIcon("/usr/share/icons/default.kde/128x128/mimetypes/source_java.png")); // NOI18N
        firstPanel.add(srcFileIconLabel);
        srcFileIconLabel.setBounds(50, 80, 128, 128);

        card1TitleLabel.setFont(new java.awt.Font("Dialog", 1, 24));
        card1TitleLabel.setText("Where are your source files?");
        firstPanel.add(card1TitleLabel);
        card1TitleLabel.setBounds(150, 20, 353, 29);

        browseButton.setText("Browse...");
        firstPanel.add(browseButton);

        browseButton.addActionListener(evt -> {
            chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            chooser.setMultiSelectionEnabled(true);
            chooser.setApproveButtonText("Choose");
            chooser.setDialogTitle("Choose the directory");

            if (chooser.showOpenDialog(SourceDirectoryWizard.this) == JFileChooser.APPROVE_OPTION) {
                File[] selectedFiles = chooser.getSelectedFiles();
                for (File selectedFile : selectedFiles) {
                    sourceRootBox.setText(selectedFile.getAbsolutePath());
                }
                nextButton.setEnabled(!"".equals(sourceRootBox.getText()));
            }
        });

        browseButton.setBounds(450, 210, 100, 28);

        card1Explanation1Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation1Label.setText("Enter the top-level directory");
        firstPanel.add(card1Explanation1Label);
        card1Explanation1Label.setBounds(230, 80, 193, 17);

        card1Explanation2Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation2Label.setText("containing your application's");
        firstPanel.add(card1Explanation2Label);
        card1Explanation2Label.setBounds(230, 100, 198, 17);

        card1Explanation3Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation3Label.setText("source files.");
        firstPanel.add(card1Explanation3Label);
        card1Explanation3Label.setBounds(230, 120, 82, 17);

        contentPanel.add(firstPanel, "card1");

        getContentPane().add(contentPanel);
        contentPanel.setBounds(0, 0, 750, 300);

        previousButton.setText("<< Previous");
        previousButton.addActionListener(evt -> previousButtonActionPerformed(evt));
        getContentPane().add(previousButton);
        previousButton.setBounds(150, 350, 100, 29);

        nextButton.setText("Next >>");
        nextButton.addActionListener(evt -> nextButtonActionPerformed(evt));
        getContentPane().add(nextButton);
        nextButton.setBounds(250, 350, 100, 29);

        finshButton.setText("Finish");
        finshButton.addActionListener(evt -> finshButtonActionPerformed(evt));
        getContentPane().add(finshButton);
        finshButton.setBounds(350, 350, 100, 29);

        errorMessageLabel.setFont(new java.awt.Font("SansSerif", 1, 14)); // NOI18N
        errorMessageLabel.setForeground(new java.awt.Color(255, 0, 0));
        getContentPane().add(errorMessageLabel);
        errorMessageLabel.setBounds(0, 300, 500, 20);

        pack();
    }
952997
private void init() {
		view.setLayerTitle(layer.getTitle());
		view.setLayerVisible(layer.isMarkedAsVisible());

		updateVisibilityToggle();

		mapPresenter.getEventBus().addViewPortChangedHandler(new ViewPortChangedHandler() {
			@Override
			public void onViewPortChanged(ViewPortChangedEvent event) {
				updateVisibilityToggle();
			}
		});

		// React to layer visibility events:
		mapPresenter.getEventBus().addLayerVisibilityHandler(new LayerVisibilityHandler() {

			@Override
			public void onShow(LayerShowEvent event) {
			}

			@Override
			public void onHide(LayerHideEvent event) {
			}

			@Override
			public void onVisibilityMarked(LayerVisibilityMarkedEvent event) {
				view.setLayerVisible(layer.isMarkedAsVisible());

			}
		}, this.layer);
	}
422591
private void initGUI() {

        Font fFont = new Font("Dialog", Font.PLAIN, 12);

        setLayout(new BorderLayout());

        Panel p = new Panel();

        p.setBackground(SystemColor.control);
        p.setLayout(new GridLayout(16, 1));

        tSourceTable = new TextField();

        tSourceTable.setEnabled(false);

        tDestTable = new TextField();

        tDestTable.addActionListener(this);

        tDestDrop = new TextField();

        tDestDrop.addActionListener(this);

        tDestCreate = new TextField();

        tDestCreate.addActionListener(this);

        tDestDelete = new TextField();

        tDestDelete.addActionListener(this);

        tDestCreateIndex = new TextField();

        tDestCreateIndex.addActionListener(this);

        tDestDropIndex = new TextField();

        tDestDropIndex.addActionListener(this);

        tSourceSelect = new TextField();

        tSourceSelect.addActionListener(this);

        tDestInsert = new TextField();

        tDestInsert.addActionListener(this);

        tDestAlter = new TextField();

        tDestAlter.addActionListener(this);

        cTransfer = new Checkbox("Transfer to destination table", true);

        cTransfer.addItemListener(this);

        cDrop = new Checkbox("Drop destination table (ignore error)", true);

        cDrop.addItemListener(this);

        cCreate = new Checkbox("Create destination table", true);

        cCreate.addItemListener(this);

        cDropIndex = new Checkbox("Drop destination index (ignore error)",
                                  true);

        cDropIndex.addItemListener(this);

        cIdxForced = new Checkbox("force Idx_ prefix for indexes names",
                                  false);

        cIdxForced.addItemListener(this);

        cCreateIndex = new Checkbox("Create destination index", true);

        cCreateIndex.addItemListener(this);

        cDelete = new Checkbox("Delete rows in destination table", true);

        cDelete.addItemListener(this);

        cInsert = new Checkbox("Insert into destination", true);

        cInsert.addItemListener(this);

        cFKForced = new Checkbox("force FK_ prefix for foreign key names",
                                 false);

        cFKForced.addItemListener(this);

        cAlter = new Checkbox("Alter destination table", true);

        cAlter.addItemListener(this);
        p.add(createLabel("Source table"));
        p.add(tSourceTable);
        p.add(cTransfer);
        p.add(tDestTable);
        p.add(cDrop);
        p.add(tDestDrop);
        p.add(cCreate);
        p.add(tDestCreate);
        p.add(cDropIndex);
        p.add(tDestDropIndex);
        p.add(cCreateIndex);
        p.add(tDestCreateIndex);
        p.add(cDelete);
        p.add(tDestDelete);
        p.add(cAlter);
        p.add(tDestAlter);
        p.add(createLabel("Select source records"));
        p.add(tSourceSelect);
        p.add(cInsert);
        p.add(tDestInsert);
        p.add(createLabel(""));
        p.add(createLabel(""));
        p.add(cIdxForced);
        p.add(cFKForced);
        p.add(createLabel(""));
        p.add(createLabel(""));

        if (iTransferMode == TRFM_TRANSFER) {
            bStart    = new Button("Start Transfer");
            bContinue = new Button("Continue Transfer");

            bContinue.setEnabled(false);
        } else if (iTransferMode == Transfer.TRFM_DUMP) {
            bStart = new Button("Start Dump");
        } else if (iTransferMode == Transfer.TRFM_RESTORE) {
            bStart = new Button("Start Restore");
        }

        bStart.addActionListener(this);
        p.add(bStart);

        if (iTransferMode == TRFM_TRANSFER) {
            bContinue.addActionListener(this);
            p.add(bContinue);
        }

        bStart.setEnabled(false);
        fMain.add("Center", createBorderPanel(p));

        lTable = new java.awt.List(10);

        lTable.addItemListener(this);
        fMain.add("West", createBorderPanel(lTable));

        tMessage = new TextField();

        Panel pMessage = createBorderPanel(tMessage);

        fMain.add("South", pMessage);
    }
401479
public void init() {
        if (initialized) {
            return;
        }
        Widget parent = inputWidget.getParent();
        while (parent != null && !parent.getClass().getName().equals("com.google.gwt.user.client.ui.Widget")) {
            helpBlock = findHelpBlock(inputWidget);
            if (helpBlock != null) {
                break;
            } else {
                parent = parent.getParent();
            }
        }
        initialized = true;
    }