Giriş yap
En iyi yollayıcılar
Hello EMO | ||||
EMO | ||||
eMoStyLe | ||||
BesimBICER | ||||
GameKinG | ||||
Crysis | ||||
~>!.DεvιLρяιεsт.!<~ | ||||
MeTaL | ||||
TrueCrime | ||||
djhayal3t |
Istatistikler
Toplam 203 kayıtlı kullanıcımız varSon kaydolan kullanıcımız: crayzboy76
Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Arama
Sosyal yer imi
Sosyal bookmarking sitesinde Emo, Emo nedir, Emo resimleri, Emo Kıyafetleri, Emo Sözleri, Emo Oyunları, EmoTurkey, Emo Nickler, Emo Avatarları, Punk, Punk Resimleri, Punk Avatarları, Rock, Rock Resimleri, Rock Avatarları, Msn Nickleri, Msn Avatarları, Müzik adresi saklayın ve paylaşın
Sosyal bookmarking sitesinde EMO Style ForumPro - Hos Geldiniz adresi saklayın ve paylaşın
Kimler hatta?
Toplam 6 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 6 Misafir Yok
Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
Reklam
[Source Code] Java menu
1 sayfadaki 1 sayfası
[Source Code] Java menu
[QUOTE=killbunny51;4003076]Hi its me, i know java, so i thought i might help u guys out, i just finished making a menu in java and im going to give you the source code... FREEE. It's not noob-proofed, you can have it.
here:
Menu.java:
Frame.java
you can compile it yourself (i doesnt feel liek uplaoding at and virus scans and crap)
do w/e u want with it, i dont care!
havz fahn! :p:)[/QUOTE]
here:
Menu.java:
- Kod:
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferStrategy;
public class Menu extends Canvas implements Runnable, KeyListener {
int FWidth = 1000;
int FHeight = 1200;
int[] MStats = { 0, 0, 0, 0};
int period = 10;
double MPosX = 10;
double MPosY = 20;
int MWidth = 170;
int MHeight = 0;
long newfps = 0;
int waited = 0;
static int selected = 0;
public long timeTaken = 0;
public long sleepTime = 0;
long beginTime = 0;
long fps = 30;
long elapsed = 0;
public Graphics g;
public BufferStrategy b;
private Thread t;
private static final long serialVersionUID = 1L;
String[] MItms = { "FPS", "Random menu pos", "Menu color (fill)", "Menu color (border)" };
String[] MOpts = { "Off On", "Off On", "Def. Red Green Blue Orange", "Def. Red Green Blue Orange"};
Color OffClr = Color.red;
Color OnClr = Color.green;
Color SelClr = Color.orange;
Color BGClr = Color.black;
Color MenuClrBorder = Color.gray.darker();
Color MenuClrFill = MenuClrBorder.darker().darker();
public Menu(){
this.setIgnoreRepaint(true);
this.setBounds(0, 0, FWidth, FHeight);
this.setBackground(BGClr);
this.setVisible(true);
}
public void addNotify(){
super.addNotify();
this.createBufferStrategy(2);
this.b = this.getBufferStrategy();
this.addKeyListener(this);
requestFocus();
start();
}
public void start(){
if(t == null){
t = new Thread(this);
t.start();
}
}
public void run() {
while(true){
beginTime = System.currentTimeMillis();
Update();
Render();
Draw();
timeTaken = System.currentTimeMillis();
sleepTime = period - timeTaken;
try{
t.sleep(sleepTime);
}
catch(Exception e){
}
newfps = 0;
elapsed = beginTime - timeTaken;
newfps = (int) (100/elapsed);
newfps = Math.abs(Math****und(newfps));
waited++;
}
}
public void Update(){
}
public void Render(){
MHeight = MItms.length*10+5;
g = b.getDrawGraphics();
g.setColor(BGClr);
g.fillRect(0, 0, FWidth, FHeight);
if (MStats[0] == 1){
if(waited >= 275){
g.setColor(Color.red);
g.drawString("Current FPS: "+newfps, 0, 10);
fps = newfps;
waited = 0;
}
g.setColor(Color.red);
g.drawString("Current FPS: "+fps, 0, 10);
}
if(MStats[1] == 1){
MPosX = Math.random()*650;
MPosX = Math****und(MPosX);
MPosY = Math.random()*450;
MPosY = Math****und(MPosY);
MStats[1] = 0;
}
if(MStats[2] > 0){
if(MStats[2] == 1){
MenuClrFill = Color.red.darker().darker();
}
if(MStats[2] == 2){
MenuClrFill = Color.green.darker().darker();
}
if(MStats[2] == 3){
MenuClrFill = Color.blue.darker().darker();
}
if(MStats[2] == 4){
MenuClrFill = Color.orange.darker().darker();
}
} else {
MenuClrFill = Color.gray.darker().darker().darker();
}
if(MStats[3] > 0){
if(MStats[3] == 1){
MenuClrBorder = Color.red.darker().darker();
}
if(MStats[3] == 2){
MenuClrBorder = Color.green.darker().darker();
}
if(MStats[3] == 3){
MenuClrBorder = Color.blue.darker().darker();
}
if(MStats[3] == 4){
MenuClrBorder = Color.orange.darker().darker();
}
} else {
MenuClrBorder = Color.gray.darker();
}
g.setColor(MenuClrBorder);
g.drawRect((int) MPosX, (int) MPosY, MWidth, MHeight);
g.drawRect((int) MPosX-1, (int) MPosY-1, MWidth+2, MHeight+2);
g.drawRect((int) MPosX-2, (int) MPosY-2, MWidth+4, MHeight+4);
g.setColor(MenuClrFill);
g.fillRect((int) MPosX+1, (int) MPosY+1, MWidth-1, MHeight-1);
int i = 0;
int j = 1;
while(i<MItms.length){
if(MStats[i] == 0){
Color CClr = OffClr;
g.setColor(CClr);
} else {
Color CClr = OnClr;
g.setColor(CClr);
}
if(i == selected){
Color CClr = SelClr;
g.setColor(CClr);
}
String loc1 = MOpts[i];
String[] loc2 = loc1.split(" ");
g.drawString(MItms[i],(int) MPosX+3, j*10+(int) MPosY+3);
g.drawString(loc2[MStats[i]],(int) MPosX+129, j*10+(int) MPosY+3);
i++;
j++;
}
}
public void Draw(){
if(!b.contentsLost()){
b.show();
if(g != null){
g.dispose();
}
}
}
[MENTION=126421]override[/MENTION]
public void keyPressed(KeyEvent e) {
if(e.getKeyCode() == KeyEvent.VK_DOWN){
if(selected < MItms.length - 1){
selected++;
} else {
selected = 0;
}
}
if(e.getKeyCode() == KeyEvent.VK_UP){
if(selected == 0){
selected = MItms.length - 1;
} else {
selected--;
}
}
if(e.getKeyCode() == KeyEvent.VK_LEFT){
String[] opts = MOpts[selected].split(" ");
if(MStats[selected] == 0){
MStats[selected] = opts.length - 1;
} else {
MStats[selected]--;
}
}
if(e.getKeyCode() == KeyEvent.VK_RIGHT){
String[] opts = MOpts[selected].split(" ");
if(MStats[selected] < opts.length - 1){
MStats[selected]++;
} else {
MStats[selected] = 0;
}
}
if(e.getKeyCode() == KeyEvent.VK_INSERT){
}
}
[MENTION=126421]override[/MENTION]
public void keyReleased(KeyEvent e) {
}
[MENTION=126421]override[/MENTION]
public void keyTyped(KeyEvent e) {
}
}
Frame.java
- Kod:
import javax.swing.JFrame;
public class Frame {
public static void main(String args[]){
int FWidth = 800;
int FHeight = 600;
JFrame frame = new JFrame("Menu");
frame.setIgnoreRepaint(true);
frame.setBounds(0, 0, FWidth, FHeight);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Menu menu = new Menu();
frame.add(menu);
frame.setVisible(true);
}
}
you can compile it yourself (i doesnt feel liek uplaoding at and virus scans and crap)
do w/e u want with it, i dont care!
havz fahn! :p:)[/QUOTE]
EMO- EMO Team
- Cinsiyet :
Burçlar :
Mesaj Sayısı : 184
Puan : 247393
Rep Puanı : 5
Doğum tarihi : 28/11/89
Kayıt tarihi : 18/05/11
Yaş : 34
Nerden : EMO world
İş/Hobiler : RCE Student / Game Hacking / Learn Beginner C#,C++,Delphi
Lakap : EMO
Similar topics
» [Source] Tabbed Menu
» [Source] - Button Menu D3D9
» java source site adress
» [Source C++ 1.15] Uhack Source code
» [Source Code] C# WriteProcessMemory/ReadProcessMemory
» [Source] - Button Menu D3D9
» java source site adress
» [Source C++ 1.15] Uhack Source code
» [Source Code] C# WriteProcessMemory/ReadProcessMemory
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO
» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO
» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO
» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO
» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO
» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO
» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO