NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Graphics;
// import javax.swing.border.Border;


public class CBallMaze extends JFrame implements ActionListener{

private JPanel Panel1,Panel2,Panel3;
private JButton bAct,bRun,bReset;
private JButton left,right,up,down;
private JMenuBar Menu;
private JTextField optionField, squareField, directionField;
private JLabel optionLabel, squareLabel,directionLabel;
private JMenu op,nf,pn,ex,of,toEdit,nxtfile,toControl,cgcontrol,toHelp,tt,hcontent;

public static void main(String args[]) {
CBallMaze frame = new CBallMaze();
frame.setSize(775,650);
frame.createGUI();
frame.setVisible(true);
}


private void createGUI() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container window = getContentPane();
window.setLayout(null);
// setResizable(false);
setLocationRelativeTo(null);

Menu = new JMenuBar();
Menu.setBorder(BorderFactory.createLineBorder(Color.BLACK));
Menu.setBounds(0, 0, 765, 29);
window.add(Menu);

op = new JMenu("File");
Menu.add(op);
nf = new JMenu("Create New File");
op.add(nf);
of = new JMenu("Open New File");
op.add(of);
pn = new JMenu("Print File");
op.add(pn);
ex = new JMenu("Exit");
op.add(ex);

toEdit = new JMenu("Edit file");
Menu.add(toEdit);
nxtfile = new JMenu("Edit File in Next Page");
toEdit.add(nxtfile);

toControl = new JMenu("Control");
Menu.add(toControl);
cgcontrol = new JMenu("Change the control setting");
toControl.add(cgcontrol);

toHelp = new JMenu("Help Me");
Menu.add(toHelp);
hcontent = new JMenu("Help Contents");
toHelp.add(hcontent);
tt = new JMenu("Tips and Tricks");
toHelp.add(tt);

Panel1 = new JPanel();
Panel1.setBackground(Color.WHITE);
Panel1.setBounds(00, 00, 500, 561);
window.add(Panel1);

Panel2 = new JPanel();
Panel2.setBackground(Color.LIGHT_GRAY);
Panel2.setBounds(500, 00, 272, 561);
window.add(Panel2);

Panel3 = new JPanel();
Panel3.setBackground(Color.BLUE);
Panel3.setBounds(00, 561, 775, 50);
window.add(Panel3);
Panel3.setLayout(null);

ImageIcon bActImage = new ImageIcon("C:\PSP\step");
ImageIcon bRunImage = new ImageIcon("C:\PSP\run");
ImageIcon bResetImage = new ImageIcon("C:\PSP\reset");

bAct = new JButton("Act", bActImage);
Panel3.add(bAct);
bAct.setBounds(6,5 ,80, 30);

bRun = new JButton("Run", bRunImage);
Panel3.add(bRun);
bRun.setBounds(110, 5, 80, 30);

bReset = new JButton("Reset",bResetImage);
Panel3.add(bReset);
bReset.setBounds(210, 5, 80, 30);


optionLabel = new JLabel("Option");
Panel2.add(optionLabel);
optionLabel.setBounds(20, 18, 80, 30);
}


@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub

}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.