thanks for comment,I made the design by my self as you can see it isn't a java interface I'll share how I did it.
Code:
package Adf;
import java.awt.Color;
import java.awt.MouseInfo;
import java.awt.Point;
import com.sun.awt.AWTUtilities;
import java.awt.Desktop;
import java.awt.Shape;
import java.awt.geom.RoundRectangle2D;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
/**
*
* @author Design<designinvitro@gmail.com>
*/
public class ly_killer_main extends javax.swing.JFrame {
int x,y;
String returnClean;
public ly_killer_main() {
setUndecorated(true);
initComponents();
Shape forma = new RoundRectangle2D.Double(0, 0, this.getBounds().width, this.getBounds().height, 30, 30);
AWTUtilities.setWindowShape(this, forma) ;
jLabel1.setBackground(Color.red);
jLabel1.setOpaque(true);
jLabelFooter.setBackground(Color.red);
jLabelFooter.setOpaque(true);
this.getContentPane().setBackground(Color.BLACK);
setLocationRelativeTo(null);
}
/**
* 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jButtonmin = new javax.swing.JButton();
jButtonexit = new javax.swing.JButton();
jLabeladf = new javax.swing.JLabel();
jLabelEvil = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jButtonkilladfly = new javax.swing.JButton();
jLabelCleanUrl = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabelFooter = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jButtonmin.setText("_");
jButtonmin.setFocusable(false);
jButtonmin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonminActionPerformed(evt);
}
});
getContentPane().add(jButtonmin, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 0, 40, 40));
jButtonexit.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
jButtonexit.setText("X");
jButtonexit.setFocusable(false);
jButtonexit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonexitActionPerformed(evt);
}
});
getContentPane().add(jButtonexit, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 0, 50, 40));
jLabeladf.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/logoadf.ly.png"))); // NOI18N
getContentPane().add(jLabeladf, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 40, 190, -1));
jLabelEvil.setFont(new java.awt.Font("DejaVu Sans", 3, 14)); // NOI18N
jLabelEvil.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Devil.png"))); // NOI18N
getContentPane().add(jLabelEvil, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 0, 180, 130));
jLabel1.setBackground(new java.awt.Color(255, 0, 0));
jLabel1.setFont(new java.awt.Font("Dialog", 3, 14)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 0));
jLabel1.setText(" Adf.ly_killer_v_1.0");
jLabel1.setFocusable(false);
jLabel1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseDragged(java.awt.event.MouseEvent evt) {
jLabel1MouseDragged(evt);
}
});
jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
jLabel1MousePressed(evt);
}
});
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 410, 40));
jLabel2.setForeground(new java.awt.Color(255, 255, 0));
jLabel2.setText("Insert Adf.ly url");
getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 140, -1, -1));
jTextField1.setOpaque(false);
jTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 160, 220, 30));
jButtonkilladfly.setText("Kill_adf.ly");
jButtonkilladfly.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButtonkilladflyMouseClicked(evt);
}
});
jButtonkilladfly.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonkilladflyActionPerformed(evt);
}
});
getContentPane().add(jButtonkilladfly, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 160, 130, 30));
jLabelCleanUrl.setForeground(new java.awt.Color(255, 255, 0));
jLabelCleanUrl.setText("Hera your clean url");
getContentPane().add(jLabelCleanUrl, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 210, 350, 40));
jButton1.setText("Open Browser");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
}
});
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 280, -1, -1));
jLabelFooter.setForeground(new java.awt.Color(255, 255, 0));
jLabelFooter.setText(" Code for my Forum");
getContentPane().add(jLabelFooter, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 270, 410, 40));
pack();
}// </editor-fold>//GEN-END:initComponents
private void jButtonminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonminActionPerformed
setExtendedState(ICONIFIED);
}//GEN-LAST:event_jButtonminActionPerformed
private void jButtonexitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonexitActionPerformed
System.exit(0);
}//GEN-LAST:event_jButtonexitActionPerformed
private void jLabel1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MousePressed
x = evt.getX () ;
y = evt.getY () ;
}//GEN-LAST:event_jLabel1MousePressed
private void jLabel1MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MouseDragged
Point point = MouseInfo.getPointerInfo().getLocation() ;
setLocation(point.x - x, point.y - y) ;
}//GEN-LAST:event_jLabel1MouseDragged
private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextField1ActionPerformed
private void jButtonkilladflyMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonkilladflyMouseClicked
String getText=jTextField1.getText();
if (getText.equals("")||!getText.startsWith("http://adf.ly/")){
JOptionPane.showMessageDialog(null,
"Enter valid adf.ly url",
"Information",JOptionPane.INFORMATION_MESSAGE);
jTextField1.setText("");}
StarKillAdfly gourl= new StarKillAdfly();
try {
this.returnClean=gourl.Starkilleradfly(getText);
} catch (IOException ex) {
Logger.getLogger(ly_killer_main.class.getName()).log(Level.SEVERE, null, ex);
}
jLabelCleanUrl.setText(returnClean);
}//GEN-LAST:event_jButtonkilladflyMouseClicked
private void jButtonkilladflyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonkilladflyActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonkilladflyActionPerformed
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
String checkStart=jLabelCleanUrl.getText();
if(!checkStart.startsWith("http")){
JOptionPane.showMessageDialog(null,
"You are stupid try doing the first Step\n"
+ " put a valid adf.ly url\n"
+ "and then click on killadf.ly\n"
+ "Before that click open browser",
"Information",JOptionPane.INFORMATION_MESSAGE);
jTextField1.setText("");}
try {
try {
Desktop.getDesktop().browse(new URI(returnClean));
} catch (IOException ex) {
Logger.getLogger(ly_killer_main.class.getName()).log(Level.SEVERE, null, ex);
}
} catch (URISyntaxException ex) {
Logger.getLogger(ly_killer_main.class.getName()).log(Level.SEVERE, null, ex);
}
}//GEN-LAST:event_jButton1MouseClicked
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton1ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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 ex) {
java.util.logging.Logger.getLogger(ly_killer_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(ly_killer_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(ly_killer_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(ly_killer_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ly_killer_main().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButtonexit;
private javax.swing.JButton jButtonkilladfly;
private javax.swing.JButton jButtonmin;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabelCleanUrl;
private javax.swing.JLabel jLabelEvil;
private javax.swing.JLabel jLabelFooter;
private javax.swing.JLabel jLabeladf;
private javax.swing.JTextField jTextField1;
// End of variables declaration//GEN-END:variables
}