com.anlavn.ui.DownloadPopup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AL-Library_VN Show documentation
Show all versions of AL-Library_VN Show documentation
Java library for many thing wonderful
package com.anlavn.ui;
// Make By Bình An || AnLaVN || KatoVN
public class DownloadPopup extends javax.swing.JFrame {
public DownloadPopup() {
initComponents();
this.setBackground(new java.awt.Color(0,0,0,0));
}
@SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {
Background = new com.k33ptoo.components.KGradientPanel();
tittle = new javax.swing.JLabel();
bar = new com.anlavn.ui.LiquidProgress();
content = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(0, 0, 0));
setUndecorated(true);
setOpacity(0.8F);
setResizable(false);
Background.setkBorderRadius(65);
Background.setkEndColor(new java.awt.Color(179, 218, 255));
Background.setkStartColor(new java.awt.Color(179, 218, 255));
Background.setOpaque(false);
tittle.setFont(new java.awt.Font("Courier New", 1, 18)); // NOI18N
tittle.setForeground(new java.awt.Color(102, 102, 255));
tittle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
tittle.setText("Download");
bar.setBorder(null);
bar.setValue(50);
bar.setFont(new java.awt.Font("Courier New", 1, 24)); // NOI18N
content.setFont(new java.awt.Font("Tahoma", 2, 14)); // NOI18N
content.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
content.setText("12/12 byte");
javax.swing.GroupLayout BackgroundLayout = new javax.swing.GroupLayout(Background);
Background.setLayout(BackgroundLayout);
BackgroundLayout.setHorizontalGroup(
BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(BackgroundLayout.createSequentialGroup()
.addGap(150, 150, 150)
.addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(150, 150, 150))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BackgroundLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(tittle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(content, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)))
);
BackgroundLayout.setVerticalGroup(
BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(BackgroundLayout.createSequentialGroup()
.addGap(30, 30, 30)
.addComponent(tittle, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25)
.addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25)
.addComponent(content, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(40, 40, 40))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Background, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Background, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
setLocationRelativeTo(null);
}// //GEN-END:initComponents
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(DownloadPopup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(() -> {
new DownloadPopup().setVisible(true);
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private com.k33ptoo.components.KGradientPanel Background;
public com.anlavn.ui.LiquidProgress bar;
public javax.swing.JLabel content;
public javax.swing.JLabel tittle;
// End of variables declaration//GEN-END:variables
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy