![JAR search and dependency download from the Maven repository](/logo.png)
it.tidalwave.blueargyle.home.HomeTopComponent Maven / Gradle / Ivy
/***********************************************************************************************************************
*
* blueArgyle - a Java UI for Argyll
* Copyright (C) 2011-2012 by Tidalwave s.a.s. (http://www.tidalwave.it)
*
***********************************************************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
***********************************************************************************************************************
*
* WWW: http://blueargyle.java.net
* SCM: https://bitbucket.org/tidalwave/blueargyle-src
*
**********************************************************************************************************************/
package it.tidalwave.blueargyle.home;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.util.NbBundle;
import org.openide.windows.TopComponent;
/***********************************************************************************************************************
*
* @author Fabrizio Giudici
* @version $Id$
*
**********************************************************************************************************************/
@TopComponent.Description(preferredID = "HomeTopComponent",
iconBase = "it/tidalwave/blueargyle/home/home-icon-th.png",
persistenceType = TopComponent.PERSISTENCE_NEVER)
@TopComponent.Registration(mode = "editor", openAtStartup = true)
@ActionID(category = "Window", id = "it.tidalwave.blueargyle.home.HomeTopComponent")
@ActionReferences(value =
{
@ActionReference(path = "Toolbars/Standard", position = 10)
})
@TopComponent.OpenActionRegistration(displayName = "#CTL_HomeAction", preferredID = "HomeTopComponent")
public final class HomeTopComponent extends TopComponent
{
public HomeTopComponent()
{
initComponents();
setName(NbBundle.getMessage(HomeTopComponent.class, "CTL_HomeTopComponent"));
putClientProperty(PROP_DRAGGING_DISABLED, true);
putClientProperty(PROP_MAXIMIZATION_DISABLED, true);
putClientProperty(PROP_UNDOCKING_DISABLED, true);
}
/**
* This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The
* content of this method is always regenerated by the Form Editor.
*/
// //GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
setName(org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.name")); // NOI18N
jPanel1.setBackground(new java.awt.Color(80, 80, 80));
jPanel1.setName(org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.jPanel1.name")); // NOI18N
jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getSize()-1f));
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.jLabel1.text")); // NOI18N
jLabel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
jLabel1.setName(org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.jLabel1.name")); // NOI18N
jLabel2.setFont(new java.awt.Font("Lucida Grande", 1, 48)); // NOI18N
jLabel2.setForeground(new java.awt.Color(210, 210, 210));
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.jLabel2.text")); // NOI18N
jLabel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
jLabel2.setName(org.openide.util.NbBundle.getMessage(HomeTopComponent.class, "HomeTopComponent.jLabel2.name")); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
}// //GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
// End of variables declaration//GEN-END:variables
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy