Added: 2 years ago
From: MrJavaHelp
Views: 45,336
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (39)

Sign In or Sign Up now to post a comment!
  • This is what I was serching the web for 2 hrs back ;-) ... thanks for d tutorials.

  • Hey MrJavaHelp(er). Currently I'm a college student studying IT. Most of my courses have to do with programming. Among the languages is Java obviously. Can't thank you enough for these tutorials, they are very helpful!

    Two thumbs up.

    Rick

  • Good Teacher

  • @plutoamun he is lol i'm 13 and I'm doing this, and i understand it

  • my not work the exit and the class class exitaction implements ActionListener{ public void actionPerfomed (ActionEvent e) { System.exit(0);

    the word exitaction has a erron on eclipse Description Resource Path Location Type

    The type exitaction must implement the inherited abstract method ActionListener.actionPerformed­(ActionEvent)

    they show that error.. }

  • I didn't need the bottom code; class exitaction implements ActionListener{ public void actionPerformed (ActionEvent e) { System.exit(0);

    It worked fine without. Unless there is something else?

    Can you make a tutorial on how to add writing when clicking the 'About' tab please?

  • EXCELLENT!!!!

  • awesome thanks a lot.. I wanted to know about this actionListener thingy..really helpful :)

  • Cheers for this!

  • Thanks buddy you helped me a lot

  • THANKS MAN!!! AWESOME

    

  • thanks a lot maaaan!!! helped me with my assignment!!!!

    do u have a tutorial that opens an image file and displays it on the JFrame??

  • @triXter0612 i can help you with that

  • @razorbunny555 really? ok uhm,, I can send you my code to have a look at if you want. but where do I send it?

  • @triXter0612 did you recieve my message?

  • Thanks a lot, this was helpful and well explained...

    I don't know if it's true, but I read something about that it's not legit to mix swing and awt code... but nevermind, this works ;)

  • thank u ..............................­......

  • Thank you for this tutorial. I created one just like it, however, after I tested it the first time, it would not show the menuBar the next time. What do I need to add so that it shows the menuBar each time I run it?

  • Also, work on your conventions!

  • I see you're trying, but enclosing everything in the main method is unreasonable.

  • @Canownueasy This is a GUI tutorial not a OO tutorial :P

  • import javax.swing.*;

    import java.awt.*;

    public class apples { public static void main(String[] args){ tuna object = new tuna(); object.setDefaultCloseOperatio­n(JFrame.EXIT_ON_CLOSE); object.setSize(1000, 700); object.setVisible(true); JMenuBar bar = new JMenuBar(); frame.setJMenuBar(bar); JMenu file = new JMenu("File"); }

    }

    frame is highlighted has an error, why?

  • I'm not completely sure because I can't see your tuna class, but it looks like you used TheNewBoston's tutorial, and if this is the case then you need to put everything that comes after object.setVisible(true) in the constructor of the Tuna class.

  • @MrHelpfulHand1 Oh.. Well I fixed it in the end. I can't remember how though because this was 8 months ago... Thanks anyway!

  • you are awesome, thank you.

  • good one

  • Thanks

  • I've noticed in the past few videos your keyboard uses the same key for 1 and semicolon. just out of curiosity, what type of keyboard layout are you using?

  • @darkarcra It was a lowercase "L", which is directly to the left of the semicolon

  • may you add code about help bar menu so that when you click on it links to information relative to

  • thank you very very very very very very very very very very very very very very very very much

  • God bless you soul. Thank you and i love.

  • I <3 You

  • wut were all the imports u added?

  • It was just import javax.swing.*;

  • kk.

  • Thanks, but how do you make it so when you click about, it does something else? I dont really get how clicking exit was related to where the exit coded was

  • @shanetalbert

    JSubMenu

  • Thanks man, these help so much.

    Really appreciate the help you're giving us

    Keep them coming :)

  • this is so cool, thanks man,

    i was hoping if some one did it in net beans, but this is cool too.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more