Recommended Driver Scanner

Member Panel



Join the PC Help Forum Team

Join PC Help Forum on Facebook

Join the PCHF Distributed Computing Teams

Try the NEW PC Help Forum Dark style

Link to PCHF from other parts of the Internet

PC Forum PC Help Forum » Members List » malcomhfc's Profile

malcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile pagemalcomhfc - See this Members User comments on their Profile page

malcomhfc malcomhfc is offline

Tech Member

Visitor Messages

Showing Visitor Messages 1 to 15 of 15
  1. Overclocked For life
    i was jokin lol
  2. Overclocked For life
    shhhh LOL
  3. Sir Trews
    3 Days Ago - permalink
    Sir Trews
    Ahh!
    I thank you malcolm! My best wishes to you and yours for a Great 2009 as well!
  4. Sir Trews
    3 Days Ago - permalink
    Sir Trews
    Most certainly malcomhfc!

    Cheers!
  5. Overclocked For life
    Hay mate, hows you?
  6. malcomhfc
    1 Week Ago - permalink
    malcomhfc
    Happy new year all.
  7. madmonkey
    1 Week Ago - permalink
    madmonkey
    I did indeed you? How's the keyboard?
  8. madmonkey
    1 Week Ago - permalink
    madmonkey
    Happy Christmas Malc
  9. Jelly Bean
    3 Weeks Ago - permalink
    Jelly Bean
    Nadolig llawen

  10. malcomhfc
    4 Weeks Ago - permalink
    malcomhfc
    update: back

    away for awhile!
  11. silverwings
    12-02-2008 - permalink
    silverwings
    Hello Malcomhfc, thanks for the welcome and for all you do here to help us get better aquited with our PC's. Thanks, Rowland/ silverwings
  12. madmonkey
    11-19-2008 - permalink
    madmonkey
    Naa, I'm not as strong as you think on Java. Unfortunately my strength lye's with the dying language which is Delphi! Looks like a good book though
  13. madmonkey
    11-18-2008 - permalink
    madmonkey
    hehe, na you'll get there. I'll talk your through it, basically, you need to bring up a window (the java term in Frame), and also to be able to put text into that window, you'll need to work with Labels.

    So first you see "package", this is the name of your java application.

    We need to work with labels and frames, so we "import" JFrame and JLabel (Java Frame and Java Label).

    Anything starting with /* and ending with */ are comments. You can be anything in here, and this is perfectly healthy. If you ever have proper development training, they will advise you to use comments regularly, and you'll even be graded on it too. It can be useful to keep track of where everything is in your code, and you can explain what is happening for yourself at a later date. And if you ever get a job in development, it can be useful for other developers to see these comments, and make it easier to find what is going on. As your coding becomes more complicated, you'll find that there are sooo many ways produce what you want.

    "public static void main" here is your main procedure. You can use procedures to call other procedures, but this is something you'll learn later, and you'll also learn what comes inside of those brackets are an important. These can be used to pass information from one procedure to another.

    Below that "JFrame frame =" is where you specify a new frame. The frame can be called anything, not just "frame", and there is no limit to how many you have, just call it something different, for example "frame_main", "frame1", "frame2" or whatever you want to call it... but it's not quite ready yet, you have justed create a frame in memory. The part in brackets specifies the title of the frame, in this case "malcomhfc".

    "JLabel label =" specifies a new label. Again you can call this anything you want, and within that label, the text "Hello World" can be changed at any time in your program.

    Below that, your adding the label to the frame "add(label);".

    The last three lines in the procedure is what is required to allow the frame to close properly, then finally, the frame (window) is ready, and you can make it visible.
  14. madmonkey
    11-17-2008 - permalink
    madmonkey
    Hey Malc, that will only work if your running it from a dos prompt, the gui equiv would be:

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    package javaapplication1;
    import javax.swing.JFrame;
    import javax.swing.JLabel;

    /**
    *
    * @author tsMonkey
    */
    public class Main {

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    JFrame frame = new JFrame("Malcomhfc");
    final JLabel label = new JLabel("Hello World");
    frame.getContentPane().add(label);

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.pack();
    frame.setVisible(true);
    }

    }
  15. Overclocked For life
    Alright mate

About Me

  • About malcomhfc
    Biography
    Im still at school and in my spare time im java.

    In a few months time i will be going to collage to learn web design.
    Location
    scotland, uk
    Interests
    web design and learn java
    Occupation
    school
    Home Country
    United Kingdom
    PC Experience
    Some Experience
    Male
  • Signature
    Did we help you? consider donating

    PREWORK | AFTERWORK| PCHF RULES

Statistics

Total Posts
Visitor Messages
General Information
  • Last Activity: 14 Hours Ago
  • Join Date: 09-04-2008
  • Referrals: 0

Friends

Showing Friends 1 to 12 of 12

Contact Info

Instant Messaging
Send an Instant Message to malcomhfc Using...
This Page
http://www.pchelpforum.com/members/30502-malcomhfc/

18921 point(s) total     Latest Reputation Received
  Thread Date Comment
I have an issue with... 01-06-2009 09:23 AM Although this is true with the consumer versions, the corporate versions are much better at resolving this issue.
[MERGED] What Music Are... 01-05-2009 05:25 PM I soooo agreee with you.
How to hide ? 12-31-2008 09:16 AM excellent,superb,fantastic
recovering my weiste... 11-16-2008 07:35 PM Not that complicated really and the price is right. Provided System Restore is set to on of course.

All times are GMT +1. The time now is 03:04 AM.
Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2009 - PC Help Forum.com

Back to Top