Monday, 4 February 2019

Download Code Link Button Java

Assalamu'alaikum warohmatulloh wabarokaatuh sobat Setia Catatan sederhana Di malam Hari ini saya kan membagikan Code Java  Ok langsung saja

Berikut sekilas Infonya

1 Code CIPanelTransparan.java

2 Code CIRoundTransButtonJava

3 6 file Gambar

4 Code FrmLinkButton.java

package linkButton;

import java.awt.Desktop;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.net.URL;
import java.awt.Font;
import javax.swing.border.LineBorder;
import java.awt.Color;

@SuppressWarnings("serial")
public class FrmLinkButton extends JFrame {

private JPanel contentPane;
private JPanel panel;
private JTabbedPane tabbedPane;
private JLabel lblWall;
private JButton btn;
private ClRoundTransButton clrndtrnsbtnMarisharingilmu;
private ClRoundTransButton clrndtrnsbtnAndroid;
private ClRoundTransButton clrndtrnsbtnBookmark;
private ClRoundTransButton clrndtrnsbtnBookmark_1;
private ClRoundTransButton clrndtrnsbtnBookmark_2;
private JPanel panel_1;
private JLabel lblApps;

/**
* Create the frame.
*/
public FrmLinkButton() {
setTitle("Link JButton");
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 789, 473);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);

tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setBounds(0, 0, 787, 450);
contentPane.add(tabbedPane);

panel = new JPanel();
tabbedPane.addTab("Tab Baru", null, panel, null);
panel.setLayout(null);

btn = new ClRoundTransButton();
btn.setFont(new Font("Droid Sans", Font.BOLD, 14));
btn.setToolTipText("Mozilla Firefox");
btn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try {
Desktop.getDesktop().browse(
new URL("http://www.firefox.com").toURI());
} catch (Exception e) {
System.out.println(e);
}
}
});
btn.setHorizontalTextPosition(SwingConstants.CENTER);
btn.setVerticalTextPosition(SwingConstants.BOTTOM);
btn.setText("Mozilla Firefox");
btn.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/i1.png")));
btn.setBounds(74, 88, 189, 112);
panel.add(btn);

clrndtrnsbtnMarisharingilmu = new ClRoundTransButton();
clrndtrnsbtnMarisharingilmu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
Desktop.getDesktop().browse(
new URL("http://www.marisharingilmu.wordpress.com")
.toURI());
} catch (Exception ex) {
System.out.println(ex);
}
}
});
clrndtrnsbtnMarisharingilmu.setFont(new Font("Droid Sans", Font.BOLD,
14));
clrndtrnsbtnMarisharingilmu.setToolTipText("marisharingilmu");
clrndtrnsbtnMarisharingilmu.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/img2.png")));
clrndtrnsbtnMarisharingilmu
.setVerticalTextPosition(SwingConstants.BOTTOM);
clrndtrnsbtnMarisharingilmu.setText("marisharingilmu");
clrndtrnsbtnMarisharingilmu
.setHorizontalTextPosition(SwingConstants.CENTER);
clrndtrnsbtnMarisharingilmu.setBounds(287, 88, 189, 112);
panel.add(clrndtrnsbtnMarisharingilmu);

clrndtrnsbtnAndroid = new ClRoundTransButton();
clrndtrnsbtnAndroid.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
Desktop.getDesktop().browse(
new URL("http://www.android.com").toURI());
} catch (Exception ex) {
System.out.println(ex);
}
}
});
clrndtrnsbtnAndroid.setFont(new Font("Droid Sans", Font.BOLD, 14));
clrndtrnsbtnAndroid.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/img3.png")));
clrndtrnsbtnAndroid.setVerticalTextPosition(SwingConstants.BOTTOM);
clrndtrnsbtnAndroid.setToolTipText("Android");
clrndtrnsbtnAndroid.setText("Android");
clrndtrnsbtnAndroid.setHorizontalTextPosition(SwingConstants.CENTER);
clrndtrnsbtnAndroid.setBounds(496, 88, 189, 112);
panel.add(clrndtrnsbtnAndroid);

clrndtrnsbtnBookmark = new ClRoundTransButton();
clrndtrnsbtnBookmark.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/dialog-more.png")));
clrndtrnsbtnBookmark.setFont(new Font("Droid Sans", Font.BOLD, 14));
clrndtrnsbtnBookmark.setVerticalTextPosition(SwingConstants.BOTTOM);
clrndtrnsbtnBookmark.setToolTipText("Bookmark");
clrndtrnsbtnBookmark.setText("Bookmark");
clrndtrnsbtnBookmark.setHorizontalTextPosition(SwingConstants.CENTER);
clrndtrnsbtnBookmark.setBounds(74, 221, 189, 112);
panel.add(clrndtrnsbtnBookmark);

clrndtrnsbtnBookmark_1 = new ClRoundTransButton();
clrndtrnsbtnBookmark_1.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/dialog-more.png")));
clrndtrnsbtnBookmark_1.setFont(new Font("Droid Sans", Font.BOLD, 14));
clrndtrnsbtnBookmark_1.setVerticalTextPosition(SwingConstants.BOTTOM);
clrndtrnsbtnBookmark_1.setToolTipText("Bookmark");
clrndtrnsbtnBookmark_1.setText("Bookmark");
clrndtrnsbtnBookmark_1.setHorizontalTextPosition(SwingConstants.CENTER);
clrndtrnsbtnBookmark_1.setBounds(287, 221, 189, 112);
panel.add(clrndtrnsbtnBookmark_1);

clrndtrnsbtnBookmark_2 = new ClRoundTransButton();
clrndtrnsbtnBookmark_2.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/dialog-more.png")));
clrndtrnsbtnBookmark_2.setFont(new Font("Droid Sans", Font.BOLD, 14));
clrndtrnsbtnBookmark_2.setVerticalTextPosition(SwingConstants.BOTTOM);
clrndtrnsbtnBookmark_2.setToolTipText("Bookmark");
clrndtrnsbtnBookmark_2.setText("Bookmark");
clrndtrnsbtnBookmark_2.setHorizontalTextPosition(SwingConstants.CENTER);
clrndtrnsbtnBookmark_2.setBounds(496, 221, 189, 112);
panel.add(clrndtrnsbtnBookmark_2);

panel_1 = new ClPanelTransparan();
panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
panel_1.setBounds(12, 12, 758, 46);
panel.add(panel_1);
panel_1.setLayout(null);

lblApps = new JLabel("Apps");
lblApps.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/google-launcher.png")));
lblApps.setBounds(12, 0, 104, 46);
panel_1.add(lblApps);

lblWall = new JLabel("");
lblWall.setIcon(new ImageIcon(FrmLinkButton.class
.getResource("/linkButton/wall.jpg")));
lblWall.setBounds(0, 0, 782, 423);
panel.add(lblWall);
setLocationRelativeTo(null);
}

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager
.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
FrmLinkButton frame = new FrmLinkButton();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}



Sobat tidak usah Copy Saya siapkan File nya Rar Dibawahini link Donlod nya

DOWNLOAD

Alhamdulillah Catatan sederhana Download Code Link Button Java Telah selesai Mohon Maag Jika da Kesalahan Wasalamu'alaikum warohmatulloh wabarokaatuh






No comments:

Post a Comment