Skip to content

Instantly share code, notes, and snippets.

@resarahadian
resarahadian / FrmDetectUSB.java
Created December 13, 2015 09:30
Aplikasi Pendeteksi USB Drive
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.io.File;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.Font;
@resarahadian
resarahadian / KonversiBeratApp.java
Created September 30, 2015 06:05
Aplikasi Konversi Berat Sederhana
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Font;
@resarahadian
resarahadian / OptionPaneTab.java
Last active August 29, 2015 14:10
TabbedPane pada JOptionPane
import java.awt.*;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import javax.swing.plaf.ColorUIResource;
//import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;
class OptionPaneTab {
public static void main(String[] args) {
@resarahadian
resarahadian / LinkJavaIndonesia
Last active June 29, 2022 01:45
Link Pembelajaran Java
IDE JAVA :
Netbeans :
https://netbeans.org/downloads/
Eclipse :
http://www.eclipse.org/downloads/
IntelliJ IDEA :
http://www.jetbrains.com/idea/download/
@resarahadian
resarahadian / SearchFileApp.java
Created September 6, 2014 07:16
Aplikasi File Finder
import java.io.*;
import java.util.*;
class SearchFileApp {
public void findFile(String name, File file) {
File[] list = file.listFiles();
if (list != null)
for (File fil : list) {
if (fil.isDirectory()) {
findFile(name, fil);
@resarahadian
resarahadian / frameMenuLayout.java
Created February 13, 2014 00:55
Layout MenuItem
import java.awt.EventQueue;
import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.UIManager;
//import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
@resarahadian
resarahadian / SeparatorComboBox.java
Created January 31, 2014 00:29
Separator pada JComboBox
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.plaf.basic.*;
@SuppressWarnings({ "serial", "rawtypes" })
public class SeparatorComboBox extends JComboBox implements KeyListener
{
@resarahadian
resarahadian / ClComboOptionPane.java
Created January 30, 2014 07:45
JComboBox didalam JOptionPane
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class ClComboOptionPane
{
static String question(String[] pilih)
{
@resarahadian
resarahadian / Open in Terminal
Created January 21, 2014 07:20
Open in Terminal Elementary OS
[Contractor Entry]
Name=Open in terminal
Icon=terminal
Description=Open in terminal
MimeType=inode;application/x-sh;application/x-executable;
Exec=pantheon-terminal -d %U
Gettext-Domain=pantheon-terminal
@resarahadian
resarahadian / frameJavaGnome.java
Created January 15, 2014 00:00
Simple Frame Java Gnome
import org.gnome.gtk.Gtk;
import org.gnome.gtk.Stock;
import org.gnome.gtk.ToolButton;
import org.gnome.gtk.Toolbar;
import org.gnome.gtk.VBox;
import org.gnome.gtk.Window;
import org.gnome.gtk.WindowPosition;
public class frameJavaGnome extends Window {