Do you want to design website or a system?
Hi... My Name is Mohamad Fikri Bin Ramlan.
I'm a web designer and also a system developer.
If anyone want me to design a website or develop a system. You can send your request to my email: he.thumb@gmail.com or my facebook: Facebook.
My Work #1 - Kobemas System
This system use to store and update customer information. it also have search capability based on criteria inserted. it also provide report and statistical information
My Work #2 - Perpustam website

This screenshot show a library website front page which contain feature item column and other basic features of a website. This website also support multilingual and help features. Its develop using wordpress as platform.
My Work #3 - Micth website

This is a screenshot of a website that I and other staffs working on during my practical training At Micth. This the company website which build using wordpress as platform.
Java Mind Reader
Coding
/*
This is a GUI java program that show a magic where user need to follow the instruction
and wow... this program can read their mind.
By: Mohamad Fikri Bin Ramlan
Muhammad Amir Zaki Bin Zainal Alam
*/
//Word of wisdom - Secret of math, where the magic come from logic
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import java.util.StringTokenizer;
import javax.swing.*;
public class mindReader
{
private action button = new action();
private BufferedReader cmd;
private JFrame frame;
private ImageIcon iCredit, iSymbol[], iFixed[];
private JTextArea text, aSymbol[];
private JTextField fName;
private JLabel lSymbol[], lAns, lCredit, lName, lSpace, lResult, lDisplay;
private JPanel pTable, pMain, pQuest, pResult, menu;
private JButton bTry, bCont, bExit;
private String sCmd = "";
private boolean condition=false;
private int no_fix = 0;
private Color color;
public mindReader() throws IOException, FileNotFoundException
{
cmd = new BufferedReader(new FileReader("cmd.txt"));
try{
for(int i = 0; i<9; i++){ sCmd += cmd.readLine() + "\n"; }
}
catch(IOException ioe){System.out.println("I/O error!");}
frame = new JFrame("Mind Reader");
menu = new JPanel();
iCredit = new ImageIcon("mr/credits3.png");
iSymbol = new ImageIcon[12];
iFixed = new ImageIcon[12];
aSymbol = new JTextArea[99];
fName = new JTextField("SomeoneWithoutName",30);
lSymbol = new JLabel[99];
lCredit = new JLabel(iCredit);
lName = new JLabel("Enter your name : ");
pTable = new JPanel(new GridLayout(9, 11));
pMain = new JPanel(new BorderLayout());
pQuest = new JPanel(new BorderLayout());
pResult = new JPanel(new GridLayout(2,1));
bTry = new JButton("Try Again ");
bCont = new JButton(" Continue ");
bExit = new JButton("Exit");
for(int i=0; i<12; i++)
iSymbol[i]=new ImageIcon("mr/" + (i+1) + ".png");
for(int i=0; i<12; i++)
iFixed[i]=new ImageIcon("mr ans/brain" + (i+1) + ".png");
color = new Color(36,106,249);
button.randomizer();
}
public void launch()
{
pTable.setBackground(Color.BLACK);
bExit.setActionCommand("exit");
bExit.addActionListener(button);
bCont.setActionCommand("cont");
bCont.addActionListener(button);
bTry.setActionCommand("again");
bTry.addActionListener(button);
text = new JTextArea(sCmd);
text.setEditable(false);
text.setBackground(Color.BLACK);
text.setForeground(Color.WHITE);
text.setFont(new Font("LucidaSans", Font.BOLD+Font.ITALIC, 12));
menu.setLayout(new FlowLayout(FlowLayout.LEFT));
menu.add(lName);
menu.add(fName);
menu.add(bCont);
menu.add(bExit);
pMain.add(text, BorderLayout.NORTH);
pMain.add(pTable, BorderLayout.CENTER);
pQuest.add(menu, BorderLayout.NORTH);
pQuest.add(pMain, BorderLayout.CENTER);
frame.add(lCredit, BorderLayout.EAST);
frame.add(pQuest, BorderLayout.CENTER);
frame.setSize(800, 594);
frame.setResizable(false);
launchFrame();
}
public void launchFrame()
{
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
public static void main(String args[]) throws IOException
{
mindReader out = new mindReader();
out.launch();
}
private class action implements ActionListener{
public void actionPerformed(ActionEvent ev)
{
if("cont".equals(ev.getActionCommand()))
{
String check = fName.getText();
if(check.equalsIgnoreCase("randomize") || check.equalsIgnoreCase("shuffle"))
{
for(int bCont=0, f=8; bCont<99; bCont++)
{
pTable.remove(aSymbol[bCont]);
pTable.remove(lSymbol[bCont]);
}
randomizer();
pQuest.remove(pMain);
frame.remove(menu);
frame.remove(lCredit);
frame.remove(pQuest);
launchFrame();
}
else if(check.equalsIgnoreCase("amir") || check.equalsIgnoreCase("light") || check.equalsIgnoreCase("author1"))
fName.setText("The Author : Muhammad Amir Zaki bin Zainal Alam");
else if(check.equalsIgnoreCase("fikri") || check.equalsIgnoreCase("tambak") || check.equalsIgnoreCase("author2"))
fName.setText("The Author : Mohd Fikri bin Ramlan");
else if(check.equalsIgnoreCase("authors"))
fName.setText("Authors : Type author1 OR author2");
else if(check.equalsIgnoreCase("cmd") || check.equalsIgnoreCase("regedit") ||
check.equalsIgnoreCase("msconfig") || check.equalsIgnoreCase("gpedit.msc"))
fName.setText("Press 'windows' + 'r' at the keyboard and type " + check);
else
{
lResult = new JLabel("Is this what you have in mind,", SwingConstants.CENTER);
lResult.setFont(new Font("Segoue UI", Font.ITALIC, 18));
lResult.setForeground(Color.WHITE);
lDisplay = new JLabel(fName.getText() + "?", SwingConstants.CENTER);
lDisplay.setFont(new Font("Segoe UI", Font.BOLD, 50));
lDisplay.setForeground(color);
pResult.setBackground(Color.BLACK);
pResult.add(lResult);
pResult.add(lDisplay);
for(int bCont=0, f=8; bCont<99; bCont++)
{
pTable.remove(aSymbol[bCont]);
pTable.remove(lSymbol[bCont]);
}
lAns = new JLabel(iFixed[no_fix]);
pMain.remove(text);
pMain.remove(pTable);
pMain.setBackground(Color.BLACK);
pMain.add(pResult, BorderLayout.SOUTH);
pMain.add(lAns, BorderLayout.CENTER);
menu.remove(bCont);
menu.remove(bExit);
menu.add(bTry);
menu.add(bExit);
fName.setEditable(false);
launchFrame();
}
}
else if("again".equals(ev.getActionCommand()))
{
randomizer();
text = new JTextArea(sCmd);
text.setBackground(Color.BLACK);
text.setForeground(Color.WHITE);
text.setFont(new Font("LucidaSans", Font.BOLD+Font.ITALIC, 12));
pResult.remove(lResult);
pResult.remove(lDisplay);
pMain.remove(pResult);
pMain.remove(lAns);
pMain.add(text, BorderLayout.NORTH);
pMain.add(pTable, BorderLayout.CENTER);
menu.remove(bTry);
menu.remove(bExit);
menu.add(bCont);
menu.add(bExit);
fName.setEditable(true);
launchFrame();
}
else if("exit".equals(ev.getActionCommand()))
System.exit(0);
}
public void randomizer()
{
no_fix = (int)(Math.random()*12);
for(int i=1; i<100; i++)
{
if(i % 9 == 0)
lSymbol[i-1] = new JLabel(iSymbol[no_fix]);
else
lSymbol[i-1] = new JLabel(iSymbol[(int)(Math.random()*12)]);
aSymbol[i-1] = new JTextArea(" " + i);
aSymbol[i-1].setFont(new Font("LucidaSans", Font.BOLD, 15));
aSymbol[i-1].setBackground(Color.BLACK);
aSymbol[i-1].setForeground(color);
aSymbol[i-1].setEditable(false);
pTable.add(aSymbol[i-1]);
pTable.add(lSymbol[i-1]);
}
}
}
}
No comments:
Post a Comment