CasiOo's Profile User Rating: *****

Reputation: 1399 Grandmaster
Group:
Mentors
Active Posts:
3,104 (2.45 per day)
Joined:
05-April 11
Profile Views:
12,332
Last Active:
User is offline Today, 03:02 AM
Currently:
Offline

Previous Fields

Country:
DK
OS Preference:
Who Cares
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
225
Expert In:
Java

Latest Visitors

Icon   CasiOo has not set their status

Posts I've Made

  1. In Topic: How To Make Automatic Script For Browsers (Other than AutoIT)

    Posted 21 Sep 2014

    Are you looking for something like Phamtomjs?
    Phantomjs renders the website and executes any Javascript it encounter (if you allow it)
    You are also able to inject your own Javascript into the page at any given time
    There are of course a lot more phantomjs can do

    Take a look at it :)
  2. In Topic: calculator layout formatting

    Posted 21 Sep 2014

    There are no compilation errors on my end
    Are you somehow referring to your own implementation of GridLayout?

    Placing the JTextArea (probably should be JTextField) at the top is easy enough with your current layout
    Change
    this.add(Display);
    
    

    Into
    this.add(Display, BorderLayout.NORTH);
    
    

    The default layout manager for JFrame is BorderLayout
    When calling this.add(<component>) you are placing the component at the CENTER location
    Two calls to this.add with the same location will override the other
    Go read about BorderLayout if you wanna find out how it works :)

    Please don't capitalize your variables in Java. Follow the naming conventions
    JTextArea display = new JTextArea(1,20);
    final JPanel controlPanel = new JPanel();
    
    
  3. In Topic: Where can I find real world tutorials/walkthroughs

    Posted 21 Sep 2014

    cfoley that is a truly amazing series of videos
    Thanks for sharing! :)
  4. In Topic: Java won't let me use strings

    Posted 21 Sep 2014

    Are you sure your teacher didn't add a 'default' to the switch ?
  5. In Topic: Ideas to make this bullseye program work!

    Posted 16 Sep 2014

    Painting directly onto a JFrame sucks.. Why? Because the border and other decorations are part of the component's width & height
    Other components, such as JPanel, doesn't contain a border and is much easier to paint on.. But you'll have to settle with JFrame for now :)

    You'll have to account for the border when calculating the center of the bullseye
    You can get the border dimensions by calling
    Insets frameBorder = getInsets();
    
    

    Clearing the screen would then have to be something like
    //clearing screen
    canvas.setColor(Color.BLACK);
    canvas.fillRect(frameBorder.left, frameBorder.top, 200 - frameBorder.right - frameBorder.left, 200 - frameBorder.bottom - frameBorder.top);
    
    

    Notice how the area where you can paint is being shrinked because of the border
    The actual width, where you can paint, is: 200 - frameBorder.right - frameBorder.left

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
3
Programming Languages:
Java, C#, VB.NET, JavaScript, PL/SQL, PHP (Basic)

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    riperator Icon

    31 Jul 2013 - 10:33
    <3 you
  2. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    thank*
  3. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    wanted to that you for your help with my gui practice
  4. Photo

    raghav.naganathan Icon

    25 Nov 2012 - 21:15
    Hi dude...I would like to tell you that your rep(729) is a perfect cube :) Cheers :)
  5. Photo

    ubunta Icon

    30 Sep 2012 - 23:33
    hi hello
    hope will be fine and feeling well!!!!!!!!!!!!!!
  6. Photo

    Proshnobodhok Icon

    12 Oct 2011 - 12:31
    Hi CasiOo,
    I really didnt know the term. nyways seems like you can help me in at least telling me the way to get the related resources. but is it against the IT laws?
  7. Photo

    CasiOo Icon

    28 Jun 2011 - 04:11
    Thank you :)
  8. Photo

    smohd Icon

    26 Jun 2011 - 19:39
    Welcome to contributors group
Page 1 of 1