bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
private void jComponentMouseDragged(final MouseEvent e) { final Point mouseLocation = MouseInfo.getPointerInfo().getLocation(); final Point jComponentLocation = SwingUtilities.getWindowAncestor(((JComponent) e.getSource())).getLocation(); offsetX = mouseLocation.x - mouseOrigin.x - jComponentLocation.x - jComponentOrigin.x; offsetY = mouseLocation.y - mouseOrigin.y - jComponentLocation.y - jComponentOrigin.y; moveWindow(e); }
|
private void jComponentMouseDragged(final MouseEvent e) { final Point mouseLocation = MouseInfo.getPointerInfo().getLocation(); final Point jComponentLocation = SwingUtilities.getWindowAncestor(((JComponent) e.getSource())).getLocation(); offsetX = mouseLocation.x - mouseOrigin.x - jComponentLocation.x - jComponentOrigin.x; offsetY = mouseLocation.y - mouseOrigin.y - jComponentLocation.y - jComponentOrigin.y; moveWindow(e); }
| 1,113,647
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (null == profile) connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); connectionText = getString(Connection.OFFLINE); break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (isDebugMode() && (null != profile)) { connectionText = profile.getName(); } else { connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); connectionText = getString(Connection.OFFLINE); break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
| 1,113,648
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (null == profile) connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); connectionText = getString(Connection.OFFLINE); break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (null == profile) connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); connectionText = getString(Connection.OFFLINE); break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
| 1,113,649
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (null == profile) connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); connectionText = getString(Connection.OFFLINE); break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
|
private void reloadConnection() { connectionJLabel.setText(""); final String connectionText; switch(getInputConnection()) { case ONLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_ONLINE); if (null == profile) connectionText = getString(Connection.ONLINE); else connectionText = profile.getName(); break; case OFFLINE: connectionJLabel.setForeground(Colors.Browser.MainStatus.CONNECTION_FOREGROUND_OFFLINE); if (isDebugMode() && (null != profile)) { connectionText = new StringBuffer(profile.getName()).append(": ").append(getString(Connection.OFFLINE)).toString(); } else { connectionText = getString(Connection.OFFLINE); } break; default: throw Assert.createUnreachable("UNKNOWN CONNECTION"); } connectionJLabel.setText(connectionText); }
| 1,113,650
|
private void maybeShowPopup(final java.awt.event.MouseEvent e) { tabPanel.panelCellMouseClicked(cell, e); if (e.isPopupTrigger() && (null != tabPanel.getPopupDelegate())) { tabPanel.getPopupDelegate().initialize((Component) e.getSource(), e.getX(), e.getY()); cell.showPopup(); } }
|
private void maybeShowPopup(final java.awt.event.MouseEvent e) { tabPanel.panelCellMouseClicked(cell, e); if (e.isPopupTrigger() && (null != tabPanel.getPopupDelegate())) { tabPanel.getPopupDelegate().initialize((Component) e.getSource(), e.getX(), e.getY()); cell.showPopup(); } }
| 1,113,651
|
public void reloadDocument(final Long documentId) { final DisplayDocument displayDocument = getDisplayDocument(documentId); if(null == displayDocument) { ListItem listItem; for(int i = 0; i < jListModel.size(); i++) { listItem = (ListItem) jListModel.get(i); if(listItem instanceof DocumentListItem) { if(((DocumentListItem) listItem).getDocumentId().equals(documentId)) { jListModel.remove(i); break; } } } } else { final ListItem listItem = DocumentListItem.create(displayDocument); if(jListModel.contains(listItem)) { final int selectedIndex = jList.getSelectedIndex(); final int index = jListModel.indexOf(listItem); jListModel.remove(index);// jListModel.add(index, listItem); jListModel.add(0, listItem); jList.setSelectedIndex(selectedIndex); } else { jListModel.add(0, listItem); } } }
|
public void reloadDocument(final Long documentId, final Boolean remoteReload) { final DisplayDocument displayDocument = getDisplayDocument(documentId); if(null == displayDocument) { ListItem listItem; for(int i = 0; i < jListModel.size(); i++) { listItem = (ListItem) jListModel.get(i); if(listItem instanceof DocumentListItem) { if(((DocumentListItem) listItem).getDocumentId().equals(documentId)) { jListModel.remove(i); break; } } } } else { final ListItem listItem = DocumentListItem.create(displayDocument); if(jListModel.contains(listItem)) { final int selectedIndex = jList.getSelectedIndex(); final int index = jListModel.indexOf(listItem); jListModel.remove(index);// jListModel.add(index, listItem); jListModel.add(0, listItem); jList.setSelectedIndex(selectedIndex); } else { jListModel.add(0, listItem); } } }
| 1,113,654
|
public void reloadDocument(final Long documentId) { final DisplayDocument displayDocument = getDisplayDocument(documentId); if(null == displayDocument) { ListItem listItem; for(int i = 0; i < jListModel.size(); i++) { listItem = (ListItem) jListModel.get(i); if(listItem instanceof DocumentListItem) { if(((DocumentListItem) listItem).getDocumentId().equals(documentId)) { jListModel.remove(i); break; } } } } else { final ListItem listItem = DocumentListItem.create(displayDocument); if(jListModel.contains(listItem)) { final int selectedIndex = jList.getSelectedIndex(); final int index = jListModel.indexOf(listItem); jListModel.remove(index);// jListModel.add(index, listItem); jListModel.add(0, listItem); jList.setSelectedIndex(selectedIndex); } else { jListModel.add(0, listItem); } } }
|
public void reloadDocument(final Long documentId) { final DisplayDocument displayDocument = getDisplayDocument(documentId); if(null == displayDocument) { ListItem listItem; for(int i = 0; i < jListModel.size(); i++) { listItem = (ListItem) jListModel.get(i); if(listItem instanceof DocumentListItem) { if(((DocumentListItem) listItem).getDocumentId().equals(documentId)) { jListModel.remove(i); break; } } } } else { final ListItem listItem = DocumentListItem.create(displayDocument); if(jListModel.contains(listItem)) { final int selectedIndex = jList.getSelectedIndex(); final int index = jListModel.indexOf(listItem); jListModel.remove(index);// jListModel.add(index, listItem); if(remoteReload) { jListModel.add(0, listItem); } else { jListModel.add(index, listItem); } jList.setSelectedIndex(selectedIndex); } else { if(remoteReload) { jListModel.add(0, listItem); } else { jListModel.add(index, listItem); } } } }
| 1,113,655
|
ContactTabModel() { super(); this.actionDelegate = new ContactTabActionDelegate(this); this.browser = getBrowser(); this.expandedState = new HashMap<TabPanel, Boolean>(); this.filteredPanels = new ArrayList<TabPanel>(); this.listModel = new DefaultListModel(); this.panels = new ArrayList<TabPanel>(); this.popupDelegate= new ContactTabPopupDelegate(this); this.searchResults = new ArrayList<JabberId>(); this.sortedBy = new ArrayList<Ordering>(); this.visiblePanels = new ArrayList<TabPanel>(); }
|
ContactTabModel() { super(); this.actionDelegate = new ContactTabActionDelegate(this); this.browser = getBrowser(); this.expandedState = new HashMap<TabPanel, Boolean>(); this.filteredPanels = new ArrayList<TabPanel>(); this.listModel = new DefaultListModel(); this.panels = new ArrayList<TabPanel>(); this.popupDelegate= new ContactTabPopupDelegate(this); this.searchResults = new ArrayList<JabberId>(); this.sortedBy = new ArrayList<SortBy>(); this.visiblePanels = new ArrayList<TabPanel>(); }
| 1,113,656
|
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() == ascending.booleanValue()) { return; } else { ordering.setAscending(ascending); sortedBy.clear(); sortedBy.remove(ordering); sortedBy.add(ordering); synchronize(); } } else { ordering.setAscending(ascending); sortedBy.clear(); sortedBy.add(ordering); synchronize(); } }
|
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() == ascending.booleanValue()) { return; } else { ordering.setAscending(ascending); sortedBy.clear(); sortedBy.remove(ordering); sortedBy.add(ordering); synchronize(); } } else { ordering.setAscending(ascending); sortedBy.clear(); sortedBy.add(ordering); synchronize(); } }
| 1,113,657
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(ordering + "_DESC"); } } else { return localization.getString(ordering); } }
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(ordering + "_DESC"); } } else { return localization.getString(ordering); } }
| 1,113,659
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(ordering + "_DESC"); } } else { return localization.getString(ordering); } }
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(sortBy + "_DESC"); } } else { return localization.getString(ordering); } }
| 1,113,660
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(ordering + "_DESC"); } } else { return localization.getString(ordering); } }
|
String getString(final Ordering ordering) { if (isSortApplied(ordering)) { if (ordering.isAscending()) { return localization.getString(ordering + "_ASC"); } else { return localization.getString(ordering + "_DESC"); } } else { return localization.getString(sortBy); } }
| 1,113,661
|
public Filter addAndFilter(Filter filter) { if ( null == jcrExpression || "".equals(jcrExpression) ) { jcrExpression = ((FilterImpl) filter).getJcrExpression() ; } else { jcrExpression = "(" + jcrExpression + ") and ( " + ((FilterImpl) filter).getJcrExpression() + ")"; } return this; }
|
public Filter addAndFilter(Filter filter) { if ( null == jcrExpression || "".equals(jcrExpression) ) { jcrExpression = ((FilterImpl) filter).getJcrExpression() ; } else { jcrExpression = "(" + jcrExpression + ") and ( " + ((FilterImpl) filter).getJcrExpression() + ")"; } return this; }
| 1,113,662
|
private void addExpression(String jcrExpression) { if (this.jcrExpression.length() >0) { this.jcrExpression += " and "; } this.jcrExpression += jcrExpression ; }
|
private void addExpression(String jcrExpression) { if (this.jcrExpression.length() >0) { this.jcrExpression += " and "; } this.jcrExpression += jcrExpression ; }
| 1,113,663
|
private void addExpression(String jcrExpression) { if (this.jcrExpression.length() >0) { this.jcrExpression += " and "; } this.jcrExpression += jcrExpression ; }
|
private void addExpression(String jcrExpression) { if (this.jcrExpression.length() >0) { this.jcrExpression += " and "; } this.jcrExpression.append(jcrExpression); }
| 1,113,664
|
public Filter addOrFilter(Filter filter) { if ( null == jcrExpression || "".equals(jcrExpression) ) { jcrExpression = ((FilterImpl) filter).getJcrExpression() ; } else { jcrExpression = "(" + jcrExpression + ") or ( " + ((FilterImpl) filter).getJcrExpression() + ")"; } return this; }
|
public Filter addOrFilter(Filter filter) { if ( null == jcrExpression || "".equals(jcrExpression) ) { jcrExpression = ((FilterImpl) filter).getJcrExpression() ; } else { jcrExpression = "(" + jcrExpression + ") or ( " + ((FilterImpl) filter).getJcrExpression() + ")"; } return this; }
| 1,113,665
|
public Class getFilterClass() { return claszz; }
|
public Class getFilterClass() { return clazz; }
| 1,113,666
|
private void retrieveSimpleFields(ClassDescriptor classDescriptor, Node node, Object object) throws PathNotFoundException, RepositoryException, ValueFormatException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator(); while (fieldDescriptorIterator.hasNext()) { FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next(); String fieldName = fieldDescriptor.getFieldName(); String propertyName = fieldDescriptor.getJcrName(); if (fieldDescriptor.isPath()) { PropertyUtils.setNestedProperty(object, fieldName, node.getPath()); } else { AtomicTypeConverter converter = (AtomicTypeConverter) atomicTypeConverters .get(PropertyUtils.getPropertyType(object, fieldName)); if (node.hasProperty(propertyName)) { Object fieldValue = converter.getObject(node.getProperty(propertyName).getValue()); PropertyUtils.setNestedProperty(object, fieldName, fieldValue); } } } }
|
private void retrieveSimpleFields(ClassDescriptor classDescriptor, Node node, Object object) throws PathNotFoundException, RepositoryException, ValueFormatException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator(); while (fieldDescriptorIterator.hasNext()) { FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next(); String fieldName = fieldDescriptor.getFieldName(); String propertyName = fieldDescriptor.getJcrName(); if (fieldDescriptor.isPath()) { PropertyUtils.setNestedProperty(object, fieldName, node.getPath()); } else { AtomicTypeConverter converter = (AtomicTypeConverter) atomicTypeConverters .get(fieldTypeClass); if (node.hasProperty(propertyName)) { Object fieldValue = converter.getObject(node.getProperty(propertyName).getValue()); PropertyUtils.setNestedProperty(object, fieldName, fieldValue); } } } }
| 1,113,670
|
private void storeSimpleFields(Object object, ClassDescriptor classDescriptor, Node objectNode) throws PathNotFoundException, ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator(); while (fieldDescriptorIterator.hasNext()) { FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next(); //Of course, Path field is not updated as property if (fieldDescriptor.isPath()) { continue; } String fieldName = fieldDescriptor.getFieldName(); String jcrName = fieldDescriptor.getJcrName(); // Check if the node property is "autocreated" boolean autoCreated = false; if (objectNode.hasProperty(jcrName)) { autoCreated = objectNode.getProperty(jcrName).getDefinition().isAutoCreated(); } // All auto created JCR properties are ignored if (!autoCreated) { Object fieldValue = PropertyUtils.getNestedProperty(object, fieldName); AtomicTypeConverter converter = (AtomicTypeConverter) atomicTypeConverters.get(PropertyUtils.getPropertyType(object, fieldName)); Value value = converter.getValue(fieldValue); // Check if mandatory property are not null this.checkMandatoryProperty(objectNode, fieldDescriptor, value); objectNode.setProperty(jcrName, value); } } }
|
private void storeSimpleFields(Object object, ClassDescriptor classDescriptor, Node objectNode) throws PathNotFoundException, ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator(); while (fieldDescriptorIterator.hasNext()) { FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next(); //Of course, Path field is not updated as property if (fieldDescriptor.isPath()) { continue; } String fieldName = fieldDescriptor.getFieldName(); String jcrName = fieldDescriptor.getJcrName(); // Check if the node property is "autocreated" boolean autoCreated = false; if (objectNode.hasProperty(jcrName)) { autoCreated = objectNode.getProperty(jcrName).getDefinition().isAutoCreated(); } // All auto created JCR properties are ignored if (!autoCreated) { Object fieldValue = PropertyUtils.getNestedProperty(object, fieldName); Class fieldTypeClass = fieldDescriptor.getFieldTypeClass() != null ? fieldDescriptor.getFieldTypeClass() : PropertyUtils.getPropertyType(object, fieldName); AtomicTypeConverter converter = (AtomicTypeConverter) atomicTypeConverters.get(fieldTypeClass); Value value = converter.getValue(fieldValue); // Check if mandatory property are not null this.checkMandatoryProperty(objectNode, fieldDescriptor, value); objectNode.setProperty(jcrName, value); } } }
| 1,113,671
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); final List<Document> allDocuments = new ArrayList<Document>(); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); final List<Document> allDocuments = new ArrayList<Document>(); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
| 1,113,672
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); final List<Document> allDocuments = new ArrayList<Document>(); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
| 1,113,673
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); final List<Document> allDocuments = new ArrayList<Document>(); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
|
private void deleteLocal(final Long containerId) { // delete the draft final ContainerDraft draft = readDraft(containerId); if (null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // delete the team final InternalArtifactModel artifactModel = getArtifactModel(); artifactModel.deleteTeam(containerId); // delete the remote info artifactModel.deleteRemoteInfo(containerId); // delete the audit events getInternalAuditModel().delete(containerId); // delete versions final InternalDocumentModel documentModel = getInternalDocumentModel(); final List<ContainerVersion> versions = readVersions(containerId); final List<Document> allDocuments = new ArrayList<Document>(); List<Document> documents; for (final ContainerVersion version : versions) { documents = containerIO.readDocuments(version.getArtifactId(), version.getVersionId()); for (final Document document : documents) { if (!allDocuments.contains(document)) allDocuments.add(document); } // remove the version's artifact versions containerIO.removeVersions(containerId, version.getVersionId()); // delete the version's deltas containerIO.deleteDeltas(containerId, version.getVersionId()); // delete the version containerIO.deleteVersion(containerId, version.getVersionId()); } // delete documents for(final Document document : allDocuments) { documentModel.delete(document.getId()); } // delete the index getIndexModel().deleteContainer(containerId); // delete the container containerIO.delete(containerId); }
| 1,113,674
|
public void run() { window.open(avatar); }
|
public void run() { invoke(ActionId.PUBLISH_DOCUMENT, data); }
| 1,113,675
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, remoteReload); }
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, remoteReload); }
| 1,113,676
|
public void run() { invoke(ActionId.ADD_TEAM_MEMBER, data); }
|
public void run() { }
| 1,113,678
|
public void run() { invoke(ActionId.PUBLISH_DOCUMENT, data); }
|
public void run() { invoke(ActionId.ADD_TEAM_MEMBER, data); }
| 1,113,679
|
public void run() { ((Status) avatar).reloadStatusMessage(area, messageKey); }
|
public void run() { ((Status) avatar).reloadStatusMessage(area, messageKey); }
| 1,113,680
|
public void reloadConnectionStatus(final Connection connection) { if(connection == Connection.OFFLINE) { buttonPanel.reloadConnectionStatus(connection); } else if(connection == Connection.ONLINE) {} else { Assert.assertUnreachable(""); } }
|
public void reloadConnectionStatus(final Connection connection) { if(connection == Connection.OFFLINE) { buttonPanel.reloadConnectionStatus(connection); } else if(connection == Connection.ONLINE) {} else { Assert.assertUnreachable(""); } }
| 1,113,681
|
protected void setUp() throws Exception { super.setUp(); data = new LinkedList<Fixture>(); data.add(new Fixture("thinkParity - Local Model", "1.0.0-RC5")); }
|
protected void setUp() throws Exception { super.setUp(); data = new LinkedList<Fixture>(); data.add(new Fixture("thinkParity - Local Model", "1.0.0-RC6")); }
| 1,113,683
|
public boolean isFor(final ArtifactVersion artifactVersion) { return artifactId.equals(artifactVersion.getArtifactId()) && artifactVersionId.equals(artifactVersion.getVersionId()); }
|
public boolean isFor(final ArtifactVersion artifactVersion) { return artifactId.equals(artifactVersion.getArtifactId()) && artifactVersionId.equals(artifactVersion.getVersionId()); }
| 1,113,684
|
public void addListener(final XMPPContactListener xmppContactListener) { xmppContact.addListener(xmppContactListener); }
|
public void addListener(final XMPPContactListener xmppContactListener) { xmppContact.addListener(xmppContactListener); }
| 1,113,685
|
public void removeListener(final XMPPContactListener xmppPresenceListener) { logger.info("removeListener(XMPPContactListener)"); logger.debug(xmppPresenceListener); Assert.assertNotNull("Cannot un-register a null presence listener.", xmppPresenceListener); Assert.assertTrue( "Cannot un-register a non-registered presence listener.", xmppPresenceListeners.contains(xmppPresenceListener)); xmppPresenceListeners.remove(xmppPresenceListener); }
|
public void removeListener(final XMPPContactListener xmppPresenceListener) { logger.info("removeListener(XMPPContactListener)"); logger.debug(xmppPresenceListener); Assert.assertNotNull("Cannot un-register a null presence listener.", xmppPresenceListener); Assert.assertTrue( "Cannot un-register a non-registered presence listener.", xmppPresenceListeners.contains(xmppPresenceListener)); xmppPresenceListeners.remove(xmppPresenceListener); }
| 1,113,686
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,687
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,688
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,689
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,690
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.setText("!Cancel!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing.JLabel versionJLabel; documentJLabel = LabelFactory.create(); versionJLabel = LabelFactory.create(getString("VersionLabel")); versionJComboBox = ComboBoxFactory.create(); includeKeyJCheckBox = CheckBoxFactory.create(getString("IncludeKeyCheckBox")); jSeparator_1 = SeparatorFactory.create(); sendToJPanel = new javax.swing.JPanel(); teamJLabel = LabelFactory.create(getString("TeamLabel")); contactsJLabel = LabelFactory.create(getString("ContactsLabel")); teamJScrollPane = ScrollPaneFactory.create(); teamJList = ListFactory.create(); contactsJScrollPane = ScrollPaneFactory.create(); contactsJList = ListFactory.create(); sendJButton = ButtonFactory.create(getString("SendButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); vSpacerJLabel = LabelFactory.create(); setOpaque(false); documentJLabel.setText("!Document: 0!"); versionJLabel.setText("!Version:!"); versionJComboBox.setModel(versionModel); versionJComboBox.setRenderer(new VersionListCellRenderer()); versionJComboBox.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent e) { versionJComboBoxItemStateChanged(e); } }); includeKeyJCheckBox.setText("!Include key!"); includeKeyJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); includeKeyJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); includeKeyJCheckBox.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent e) { includeKeyJCheckBoxStateChanged(e); } }); teamJLabel.setText("!Team:!"); contactsJLabel.setText("!Contacts:!"); teamJList.setCellRenderer(new UserListCellRenderer()); teamJList.setModel(teamModel); teamJList.setSelectionModel(teamSelectionModel); teamJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { teamJListValueChanged(e); } }); teamJScrollPane.setViewportView(teamJList); contactsJList.setCellRenderer(new UserListCellRenderer()); contactsJList.setModel(contactsModel); contactsJList.setSelectionModel(contactsSelectionModel); contactsJList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent e) { contactsJListValueChanged(e); } }); contactsJScrollPane.setViewportView(contactsJList); org.jdesktop.layout.GroupLayout sendToJPanelLayout = new org.jdesktop.layout.GroupLayout(sendToJPanel); sendToJPanel.setLayout(sendToJPanelLayout); sendToJPanelLayout.setHorizontalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJLabel) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(contactsJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE))) ); sendToJPanelLayout.setVerticalGroup( sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(sendToJPanelLayout.createSequentialGroup() .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(teamJLabel) .add(contactsJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(teamJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)) .addContainerGap()) ); sendJButton.setText("!Send!"); sendJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { sendJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, sendToJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(documentJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator_1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 360, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionJLabel) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, includeKeyJCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, versionJComboBox, 0, 309, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(documentJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(versionJLabel) .add(versionJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(includeKeyJCheckBox) .add(vSpacerJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jSeparator_1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendToJPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(sendJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,691
|
public Demonstrator() { Container mainpane = getContentPane(); mainpane.setBackground(Color.black); storyQueue = new ObservableList<EarthViewStory>(); analysisQueue = new ObservableList<Analysis>(); EarthView earthView = new EarthView(storyQueue, analysisQueue); earthView.setVisible(true); earthView.addAttractor(new Polar2d(250.0, 1.75 * Math.PI), 0.75, "spitsbergen"); earthView.addAttractor(new Polar2d(250.0, 1.5 * Math.PI), 0.75, "ijsland"); earthView.addAttractor(new Polar2d(250.0, 1.25 * Math.PI), 0.75, "groenland"); earthView.addAttractor(new Polar2d(250.0, 1.0 * Math.PI), 0.75, "faeröer"); earthView.addAttractor(new Polar2d(250.0, 0.75 * Math.PI), 0.75, "ierland"); earthView.addAttractor(new Polar2d(250.0, 0.5 * Math.PI), 0.75, "nederland"); earthView.addAttractor(new Polar2d(250.0, 0.25 * Math.PI), 0.75, "denemarken"); earthView.addAttractor(new Polar2d(250.0, 0.0 * Math.PI), 0.75, "noorwegen"); setVisible(true); mainpane.add(earthView); thread = new Thread(this); thread.start(); }
|
public Demonstrator() { Container mainpane = getContentPane(); mainpane.setBackground(Color.black); storyQueue = new ObservableList<EarthViewStory>(); analysisQueue = new ObservableList<Analysis>(); EarthView earthView = new EarthView(storyQueue, analysisQueue); earthView.setVisible(true); earthView.addAttractor(new Polar2d(250.0, 1.75 * Math.PI), 0.75, "spitsbergen"); earthView.addAttractor(new Polar2d(250.0, 1.5 * Math.PI), 0.75, "ijsland"); earthView.addAttractor(new Polar2d(250.0, 1.25 * Math.PI), 0.75, "groenland"); earthView.addAttractor(new Polar2d(250.0, 1.0 * Math.PI), 0.75, "faerer"); earthView.addAttractor(new Polar2d(250.0, 0.75 * Math.PI), 0.75, "ierland"); earthView.addAttractor(new Polar2d(250.0, 0.5 * Math.PI), 0.75, "nederland"); earthView.addAttractor(new Polar2d(250.0, 0.25 * Math.PI), 0.75, "denemarken"); earthView.addAttractor(new Polar2d(250.0, 0.0 * Math.PI), 0.75, "noorwegen"); setVisible(true); mainpane.add(earthView); thread = new Thread(this); thread.start(); }
| 1,113,693
|
public EarthView(ObservableList<EarthViewStory> sq, ObservableList<Analysis> aq) { storyQueue = sq; analysisQueue = aq; // particles = Collections.synchronizedList(new LinkedList<Particle>()); attractors = new Hashtable<String, Attractor>(); particles = new Hashtable<String, Particle>(); stories = new Hashtable<String, EarthViewStory>(); sq.addObserver(this); start(); }
|
public EarthView(ObservableList<EarthViewStory> sq, ObservableList<Analysis> aq) { storyQueue = sq; analysisQueue = aq; // particles = Collections.synchronizedList(new LinkedList<Particle>()); attractors = new Hashtable<String, Attractor>(); particles = new Hashtable<String, Particle>(); stories = new Hashtable<String, EarthViewStory>(); sq.addObserver(this); }
| 1,113,695
|
public void start() { setBackground(Color.black); setForeground(Color.white); animator = new Thread(this); animator.start(); }
|
public void start() { setBackground(Color.black); animator = new Thread(this); animator.start(); }
| 1,113,696
|
public void setTopicRelevance(String value) { setProperty(keyTopicRelevance, value); relevant = true; }
|
public void setTopicRelevance(String value) { setProperty(keyTopicRelevance, value); relevant = true; }
| 1,113,697
|
protected Document addDocument(final OpheliaTestUser testUser, final Container container, final File inputFile) throws IOException { logTrace("{0} - Creating document \"{1}\".", getName(), inputFile); final Document document = createDocument(testUser, inputFile); logTrace("{0} - Adding document \"{1}\" to container \"{2}\".", getName(), inputFile, container.getName()); getContainerModel(testUser).addDocument(container.getId(), document.getId()); return document; }
|
protected Document addDocument(final OpheliaTestUser testUser, final Container container, final File inputFile) throws IOException { logTrace("{0} - Creating document \"{1}\".", getName(), inputFile); final Document document = createDocument(testUser, inputFile); logTrace("{0} - Adding document \"{1}\" to container \"{2}\".", getName(), inputFile, container.getName()); getContainerModel(testUser).addDocument(container.getId(), document.getId()); return document; }
| 1,113,698
|
protected List<Document> addDocuments(final OpheliaTestUser testUser, final Container container) throws IOException { final List<Document> documents = new ArrayList<Document>(); for(final File inputFile : getInputFiles()) { documents.add(addDocument(testUser, container, inputFile)); } return documents; }
|
protected List<Document> addDocuments(final OpheliaTestUser testUser, final Container container) throws IOException { final List<Document> documents = new ArrayList<Document>(); for(final File inputFile : getInputFiles()) { documents.add(addDocument(testUser, container, inputFile)); } return documents; }
| 1,113,699
|
protected List<Document> addDocuments(final OpheliaTestUser testUser, final Container container) throws IOException { final List<Document> documents = new ArrayList<Document>(); for(final File inputFile : getInputFiles()) { documents.add(addDocument(testUser, container, inputFile)); } return documents; }
|
protected List<Document> addDocuments(final OpheliaTestUser testUser, final Container container) throws IOException { final List<Document> documents = new ArrayList<Document>(); for(final File inputFile : getInputFiles()) { documents.add(addDocument(testUser, container, inputFile)); } return documents; }
| 1,113,700
|
protected Container createContainer(final OpheliaTestUser testUser, final String name) { final String containerName = MessageFormat.format( "{0} - {1,date,yyyyMMdd.HHmm}", name, currentDateTime().getTime()); logTrace("{0} - Creating container \"{2}\" for {1}.", getName(), testUser, containerName); return getContainerModel(testUser).create(containerName); }
|
protected Container createContainer(final OpheliaTestUser createAs, final String name) { final String containerName = MessageFormat.format( "{0} - {1,date,yyyyMMdd.HHmm}", name, currentDateTime().getTime()); logTrace("{0} - Creating container \"{2}\" for {1}.", getName(), testUser, containerName); return getContainerModel(testUser).create(containerName); }
| 1,113,701
|
protected Container createContainer(final OpheliaTestUser testUser, final String name) { final String containerName = MessageFormat.format( "{0} - {1,date,yyyyMMdd.HHmm}", name, currentDateTime().getTime()); logTrace("{0} - Creating container \"{2}\" for {1}.", getName(), testUser, containerName); return getContainerModel(testUser).create(containerName); }
|
protected Container createContainer(final OpheliaTestUser testUser, final String name) { final String containerName = MessageFormat.format( "{0} - {1,date,yyyyMMdd.HHmm}", name, currentDateTime().getTime()); logTrace("{0} - Creating container \"{2}\" for {1}.", getName(), testUser, containerName); return getContainerModel(testUser).create(containerName); }
| 1,113,702
|
protected Document createDocument(final OpheliaTestUser testUser, final File inputFile) throws IOException { return getDocumentModel(testUser).create(inputFile.getName(), new FileInputStream(inputFile)); }
|
protected Document createDocument(final OpheliaTestUser testUser, final File inputFile) throws IOException { return getDocumentModel(testUser).create(inputFile.getName(), new FileInputStream(inputFile)); }
| 1,113,703
|
protected ContainerDraft createDraft(final OpheliaTestUser testUser, final Container container) { return getContainerModel(testUser).createDraft(container.getId()); }
|
protected ContainerDraft createDraft(final OpheliaTestUser testUser, final Container container) { return getContainerModel(testUser).createDraft(container.getId()); }
| 1,113,704
|
protected File getInputFile(final String name) throws IOException { for(final File file : getInputFiles()) { if(file.getName().equals(name)) { return file; } } return null; }
|
protected File getInputFile(final String name) throws IOException { for(final File file : getInputFiles()) { if(file.getName().equals(name)) { return file; } } return null; }
| 1,113,705
|
protected File[] getInputFiles() throws IOException { final File[] inputFiles = new File[5]; System.arraycopy(super.getInputFiles(), 0, inputFiles, 0, 5); return inputFiles; }
|
protected File[] getInputFiles() throws IOException { final File[] inputFiles = new File[5]; System.arraycopy(super.getInputFiles(), 0, inputFiles, 0, 5); return inputFiles; }
| 1,113,706
|
protected File[] getModFiles() throws IOException { final File[] modFiles = new File[5]; System.arraycopy(super.getModFiles(), 0, modFiles, 0, 5); return modFiles; }
|
protected File[] getModFiles() throws IOException { final File[] modFiles = new File[5]; System.arraycopy(super.getModFiles(), 0, modFiles, 0, 5); return modFiles; }
| 1,113,707
|
protected InternalSessionModel getSessionModel( final OpheliaTestUser testUser) { return modelFactory.getSessionModel(testUser); }
|
protected InternalSessionModel getSessionModel( final OpheliaTestUser testUser) { return modelFactory.getSessionModel(testUser); }
| 1,113,708
|
protected void login(final OpheliaTestUser testUser) { logTrace("{0} - Logging in as {1}.", getName(), testUser); if(isLoggedIn(testUser)) { logWarning("{0} - User {1} already logged in.", testUser); logout(testUser); } getSessionModel(testUser).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, testUser.getCredentials()); }
|
protected void login(final OpheliaTestUser testUser) { logTrace("{0} - Logging in as {1}.", getName(), testUser); if(isLoggedIn(testUser)) { logWarning("{0} - User {1} already logged in.", testUser); logout(testUser); } getSessionModel(testUser).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, testUser.getCredentials()); }
| 1,113,709
|
protected void login(final OpheliaTestUser testUser) { logTrace("{0} - Logging in as {1}.", getName(), testUser); if(isLoggedIn(testUser)) { logWarning("{0} - User {1} already logged in.", testUser); logout(testUser); } getSessionModel(testUser).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, testUser.getCredentials()); }
|
protected void login(final OpheliaTestUser testUser) { logTrace("{0} - Logging in as {1}.", getName(), testUser); if(isLoggedIn(testUser)) { logWarning("{0} - User {1} already logged in.", testUser); logout(testUser); } logger.logInfo("Logging in user \"{0}.\"", testUser.getSimpleUsername()); getSessionModel(testUser).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, testUser.getCredentials()); }
| 1,113,710
|
protected void logout(final OpheliaTestUser testUser) { logger.logTraceId(); getSessionModel(testUser).logout(); logger.logTraceId(); }
|
protected void logout(final OpheliaTestUser testUser) { logger.logInfo("Logging out user \"{0}.\"", testUser.getSimpleUsername()); getSessionModel(testUser).logout(); logger.logInfo("Logging out user \"{0}.\"", testUser.getSimpleUsername()); }
| 1,113,711
|
protected void logout(final OpheliaTestUser testUser) { logger.logTraceId(); getSessionModel(testUser).logout(); logger.logTraceId(); }
|
protected void logout(final OpheliaTestUser testUser) { getSessionModel(testUser).logout(); }
| 1,113,712
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } return tempFile; }
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } return tempFile; }
| 1,113,713
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } return tempFile; }
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } return tempFile; }
| 1,113,714
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } return tempFile; }
|
protected File modifyDocument(final OpheliaTestUser testUser, final Document document) throws FileNotFoundException, IOException { final String prefix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final String suffix = DateUtil.format(DateUtil.getInstance(), DateImage.FileSafeDateTime); final File tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); FileUtil.writeBytes(tempFile, ("jUnit Test MOD " + DateUtil.format(DateUtil.getInstance(), DateImage.ISO)).getBytes()); final InputStream content = new FileInputStream(tempFile); try { getDocumentModel(testUser).updateDraft(document.getId(), content); } finally { content.close(); } }
| 1,113,715
|
protected void modifyDocuments(final OpheliaTestUser testUser, final Container container) throws FileNotFoundException, IOException { final ContainerModel containerModel = getContainerModel(testUser); final ContainerDraft draft = containerModel.readDraft(container.getId()); for(final Document document : draft.getDocuments()) { modifyDocument(testUser, document); } }
|
protected void modifyDocuments(final OpheliaTestUser testUser, final Container container) throws FileNotFoundException, IOException { final ContainerModel containerModel = getContainerModel(testUser); final ContainerDraft draft = containerModel.readDraft(container.getId()); for(final Document document : draft.getDocuments()) { modifyDocument(testUser, document.getId()); } }
| 1,113,716
|
protected void publishToTeam(final OpheliaTestUser testUser, final Container container) { final List<TeamMember> teamMembers = getArtifactModel(testUser).readTeam2(container.getId()); remove(teamMembers, testUser); final List<Contact> contacts = Collections.emptyList(); logTrace("{0} - Publishing container {1} to contacts {2} and team members {3}.", getName(), container.getName(), contacts, teamMembers); getContainerModel(testUser).publish(container.getId(), contacts, teamMembers); }
|
protected void publishToTeam(final OpheliaTestUser testUser, final Container container) { final List<TeamMember> teamMembers = getArtifactModel(testUser).readTeam2(container.getId()); remove(teamMembers, testUser); final List<Contact> contacts = Collections.emptyList(); logTrace("{0} - Publishing container {1} to contacts {2} and team members {3}.", getName(), container.getName(), contacts, teamMembers); getContainerModel(testUser).publish(container.getId(), contacts, teamMembers); }
| 1,113,717
|
protected void publishToTeam(final OpheliaTestUser testUser, final Container container) { final List<TeamMember> teamMembers = getArtifactModel(testUser).readTeam2(container.getId()); remove(teamMembers, testUser); final List<Contact> contacts = Collections.emptyList(); logTrace("{0} - Publishing container {1} to contacts {2} and team members {3}.", getName(), container.getName(), contacts, teamMembers); getContainerModel(testUser).publish(container.getId(), contacts, teamMembers); }
|
protected void publishToTeam(final OpheliaTestUser testUser, final Container container) { final List<TeamMember> teamMembers = getArtifactModel(testUser).readTeam2(container.getId()); remove(teamMembers, testUser); final List<Contact> contacts = Collections.emptyList(); logTrace("{0} - Publishing container {1} to contacts {2} and team members {3}.", getName(), container.getName(), contacts, teamMembers); getContainerModel(testUser).publish(container.getId(), contacts, teamMembers); }
| 1,113,718
|
private Integer getDocumentCount() { return (Integer) ((SingleContentProvider) contentProvider).getElement(null); }
|
private Integer getDocumentCount() { return (Integer) ((CompositeSingleContentProvider) contentProvider).getElement(0, null); }
| 1,113,719
|
private Icon getHistoryIcon() { if(getController().isHistoryVisible()) { return HIDE_HISTORY_ICON; } else { return SHOW_HISTORY_ICON; } }
|
private Icon getHistoryIcon() { if(getController().isHistoryVisible()) { return HIDE_HISTORY_ICON; } else { return SHOW_HISTORY_ICON; } }
| 1,113,720
|
private Icon getHistoryRolloverIcon() { if(getController().isHistoryVisible()) { return HIDE_HISTORY_ROLLOVER_ICON; } else { return SHOW_HISTORY_ROLLOVER_ICON; } }
|
private Icon getHistoryRolloverIcon() { if(getController().isHistoryVisible()) { return HIDE_HISTORY_ROLLOVER_ICON; } else { return SHOW_HISTORY_ROLLOVER_ICON; } }
| 1,113,721
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,722
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { filterJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,723
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { filterJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,724
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); infoJLabel.setHorizontalAlignment(SwingConstants.CENTER); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,725
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,726
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { toggleHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,727
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { toggleHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,728
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { toggleHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,729
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(filterJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
| 1,113,730
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(showHistoryJLabel, c.clone()); }
|
private void initComponents() { sortJLabel = LabelFactory.create(SORT_ICON); sortJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); } public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); } public void mouseReleased(final MouseEvent e) { sortJLabelMouseReleased(e); } }); infoJLabel = LabelFactory.create(); setTestInfoMessage(); showHistoryJLabel = LabelFactory.create(getHistoryIcon()); showHistoryJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); } public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); } }); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; add(sortJLabel, c.clone()); c.fill = GridBagConstraints.HORIZONTAL; c.insets.left = 0; c.weightx = 1; add(infoJLabel, c.clone()); c.fill = GridBagConstraints.NONE; c.insets.right = 8; c.weightx = 0; add(toggleHistoryJLabel, c.clone()); }
| 1,113,731
|
public void mouseEntered(final MouseEvent e) { sortJLabel.setIcon(SORT_ROLLOVER_ICON); }
|
public void mouseEntered(final MouseEvent e) { filterJLabel.setIcon(SORT_ROLLOVER_ICON); }
| 1,113,732
|
public void mouseExited(MouseEvent e) { sortJLabel.setIcon(SORT_ICON); }
|
public void mouseExited(MouseEvent e) { filterJLabel.setIcon(SORT_ICON); }
| 1,113,733
|
public void mouseClicked(final MouseEvent e) { showHistoryJLabelMouseClicked(e); }
|
public void mouseClicked(final MouseEvent e) { toggleHistoryJLabelMouseClicked(e); }
| 1,113,734
|
public void mouseEntered(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryRolloverIcon()); }
|
public void mouseEntered(final MouseEvent e) { toggleHistoryJLabel.setIcon(getHistoryRolloverIcon()); }
| 1,113,735
|
public void mouseExited(final MouseEvent e) { showHistoryJLabel.setIcon(getHistoryIcon()); }
|
public void mouseExited(final MouseEvent e) { toggleHistoryJLabel.setIcon(getHistoryIcon()); }
| 1,113,736
|
public void reload() { if(0 < getDocumentCount()) { showHistoryJLabel.setVisible(true); } else { showHistoryJLabel.setVisible(false); } }
|
public void reload() { if(0 < getDocumentCount()) { showHistoryJLabel.setVisible(true); } else { showHistoryJLabel.setVisible(false); } }
| 1,113,737
|
private void sortJLabelMouseReleased(final MouseEvent e) { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); jPopupMenu.add(createJMenuItem("ReloadMainList", new ActionListener() { public void actionPerformed(final ActionEvent e) { getController().reloadMainList(); } })); jPopupMenu.show(sortJLabel, 0, sortJLabel.getSize().height); }
|
private void sortJLabelMouseReleased(final MouseEvent e) { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); jPopupMenu.add(createJMenuItem("ReloadMainList", new ActionListener() { public void actionPerformed(final ActionEvent e) { getController().reloadMainList(); } })); jPopupMenu.show(filterJLabel, 0, filterJLabel.getSize().height); }
| 1,113,738
|
LoginAvatar(final FirstRunHelper firstRun) { super("LoginAvatar", BrowserConstants.DIALOGUE_BACKGROUND); initComponents(); bindEscapeKey("Cancel", new AbstractAction() { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { cancelJButtonActionPerformed(e); } }); bindEnterKey("Next", new AbstractAction() { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { nextJButtonActionPerformed(e); } }); }
|
public LoginAvatar() { super("LoginAvatar", BrowserConstants.DIALOGUE_BACKGROUND); initComponents(); bindEscapeKey("Cancel", new AbstractAction() { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { cancelJButtonActionPerformed(e); } }); bindEnterKey("Next", new AbstractAction() { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { nextJButtonActionPerformed(e); } }); }
| 1,113,739
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,740
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(bundle.getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,741
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(bundle.getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,742
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(bundle.getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,743
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(bundle.getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,744
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,745
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(bundle.getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,746
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,747
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,748
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,749
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel eaJLabel; javax.swing.JPanel loginInfoJPanel; javax.swing.JButton nextJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; loginInfoJPanel = new javax.swing.JPanel(); eaJLabel = LabelFactory.create(); usernameJLabel = LabelFactory.create(); passwordJLabel = LabelFactory.create(); usernameJTextField = TextFactory.create(); passwordJPasswordField = TextFactory.createPassword(); nextJButton = ButtonFactory.create(); cancelJButton = ButtonFactory.create(); loginInfoJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginInfoTitle"))); loginInfoJPanel.setOpaque(false); eaJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.EmbeddedAssistance")); usernameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.UsernameLabel")); passwordJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.PasswordLabel")); passwordJPasswordField.setFont(usernameJTextField.getFont()); nextJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.LoginButton")); nextJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("LoginAvatar.CancelButton")); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout loginInfoJPanelLayout = new org.jdesktop.layout.GroupLayout(loginInfoJPanel); loginInfoJPanel.setLayout(loginInfoJPanelLayout); loginInfoJPanelLayout.setHorizontalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) .addContainerGap()) .add(loginInfoJPanelLayout.createSequentialGroup() .add(10, 10, 10) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE) .addContainerGap(10, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.TRAILING, loginInfoJPanelLayout.createSequentialGroup() .addContainerGap(151, Short.MAX_VALUE) .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(nextJButton) .addContainerGap()) ); loginInfoJPanelLayout.setVerticalGroup( loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(loginInfoJPanelLayout.createSequentialGroup() .add(eaJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(loginInfoJPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nextJButton) .add(cancelJButton)) .addContainerGap()) ); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(loginInfoJPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,750
|
public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); }
|
public void actionPerformed(java.awt.event.ActionEvent e) { nextJButtonActionPerformed(e); }
| 1,113,751
|
public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); }
|
public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); }
| 1,113,752
|
public String eval(Context ctx, String vtl) throws Exception { /* don't waste time with null or empty strings */ if (vtl == null || vtl.length() == 0) { return null; } StringWriter sw = new StringWriter(); boolean success; if (engine == null) { success = Velocity.evaluate(ctx, sw, LOG_TAG, vtl); } else { success = engine.evaluate(ctx, sw, LOG_TAG, vtl); } if (success) { return sw.toString(); } /* or would it be preferable to return the original? */ return null; }
|
public String eval(Context ctx, String vtl) throws Exception { /* don't waste time with null or empty strings */ if (vtl == null) { return null; } StringWriter sw = new StringWriter(); boolean success; if (engine == null) { success = Velocity.evaluate(ctx, sw, LOG_TAG, vtl); } else { success = engine.evaluate(ctx, sw, LOG_TAG, vtl); } if (success) { return sw.toString(); } /* or would it be preferable to return the original? */ return null; }
| 1,113,753
|
static void handleContainerArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final Integer containerArtifactCount, final Integer containerArtifactIndex, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) throws ParityException { final InternalContainerModel containerModel = ContainerModel.getInternalModel(sContext); containerModel.handleArtifactPublished(publishedBy, publishedOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); }
|
static void handleContainerArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final Integer containerArtifactCount, final Integer containerArtifactIndex, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) throws ParityException { final InternalContainerModel containerModel = ContainerModel.getInternalModel(sContext); containerModel.handleArtifactPublished(publishedBy, publishedOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); }
| 1,113,755
|
static void handleContainerArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final Integer containerArtifactCount, final Integer containerArtifactIndex, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) throws ParityException { final InternalContainerModel containerModel = ContainerModel.getInternalModel(sContext); containerModel.handleArtifactSent(sentBy, sentOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); }
|
static void handleContainerArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final Integer containerArtifactCount, final Integer containerArtifactIndex, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) throws ParityException { final InternalContainerModel containerModel = ContainerModel.getInternalModel(sContext); containerModel.handleArtifactSent(sentBy, sentOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); }
| 1,113,756
|
public void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) { synchronized(getImplLock()) { getImpl().handleArtifactPublished(publishedBy, publishedOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); } }
|
public void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) { synchronized(getImplLock()) { getImpl().handleArtifactPublished(publishedBy, publishedOn, containerUniqueId, containerVersionId, containerName, artifactUniqueId, artifactVersionId, artifactName, artifactType, artifactChecksum, artifactBytes); } }
| 1,113,757
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.