burakaltr's Profile User Rating: ***--

Reputation: 91 Whiz
Group:
Rep Abusers
Active Posts:
274 (0.2 per day)
Joined:
07-November 10
Profile Views:
11,296
Last Active:
User is offline Today, 06:04 AM
Currently:
Offline

Previous Fields

Country:
TR
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   burakaltr has not set their status

Posts I've Made

  1. In Topic: Sorting Characters of a String

    Posted 12 Feb 2014

    Yes, Sir.

    Thank You.
  2. In Topic: Eclipse Sometimes Shows no outpu

    Posted 26 Dec 2013

    That is Normal since You are not using System.out.println() or JOptionPane for displaying information.
  3. In Topic: Going to new class

    Posted 20 Dec 2013

    import java.awt.GridBagLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class AnonymousClass implements ActionListener {
        JButton button;
        int count = 0;
        public static void main(String[] args) {
            AnonymousClass gui = new AnonymousClass();
            gui.go();
        }
        public void go() {
            button = new JButton("Click me!");
            JFrame frame = new JFrame();
            frame.setLayout(new GridBagLayout());
            frame.getContentPane().add(button);
    
            frame.setSize(500, 500);
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             
            
           
            button.addActionListener(new out(this, count));
        }}
        
    
    class out implements ActionListener {
        AnonymousClass clas;
        int count;
        out(AnonymousClass clas, int count) {
            this.clas = clas;
            this.count = count;
        }@
        Override
        public void actionPerformed(ActionEvent e) {
            // TODO Auto-generated method stub
            clas.button.setText("I've been clicked " + count + " times");
    
        }
    
    }
    
    


    You should pass the current Object to the other class by using ' this ' keyword

    in the fashion above
  4. In Topic: JButton How to only respond to multiple clicks.

    Posted 16 Dec 2013

    public class JFrameDisableButton extends JFrame implements ActionListener{
            int i=0;
    





    public void actionPerformed(ActionEvent e){
                Object source = e.getSource();
                
                if(source == press){
                	++i;
                   if(i%8==0){ 
                    text2.setText("Okay Enough Clicking, Sheesh");
                    press.setEnabled(false);
                   
    
                   }
                }
                
            }
    
  5. In Topic: Having trouble designing code to make a sum of cubes program

    Posted 13 Dec 2013

    get each digit by ( i=num ), where i is the number

                int a=i%10;
    	    int b=((i-i%10)/10)%10;
    	    int c=i-10*b-a;c/=100;
    

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
TR
Interests:
JAVA
Full Name:
Burak Alkan
Programming Languages:
FORTRAN

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  burakaltr@hotmail.com
Website URL:
Website URL  http://www.burakaltr.eu5.org
Facebook:
http://www.facebook.com/home.php#!/burak.alkan.31149

Comments

Page 1 of 1
  1. Photo

    WolverineX Icon

    03 May 2013 - 07:20
    Hello Burak! I'm Wolverine! :D
  2. Photo

    new2java10 Icon

    30 Apr 2013 - 05:03
    Hey burak!
  3. Photo

    Xanderloff Icon

    28 Feb 2013 - 10:04
    Hey :)
  4. Photo

    XPSWII Icon

    21 Feb 2013 - 21:17
    na your the angel. An angel from the heaven sent down to help. xD
  5. Photo

    WolverineX Icon

    13 Feb 2013 - 23:52
    You're welcome!
  6. Photo

    toyosikin Icon

    23 Nov 2012 - 19:03
    can u help with the task?thanks
  7. Photo

    rbk3ai Icon

    08 Oct 2012 - 06:42
    Hands down best helper!
  8. Photo

    Aoua Icon

    02 Aug 2012 - 05:45
    hi bro how are you :)
Page 1 of 1