Results 1 to 4 of 4
  1. #1
    ejyption is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default HELP! need an example

    For an assignment, we are to place JMenuBar, JButtons, JLabels and textareas (all i can do fine) then we must use the JMenuBar to open a bufferedimage (I can implement the actionlistener easy etc.) My problem is trying to add the bufferedimage onto the same JFrame. I have issues of the bufferedimage overlapping etc. something always goes wrong.

    **Can i please have an example of a layout where there is a JMenuBar, then Buttons, then under the line of buttons a line of text areas, then a bufferedimage.
    Just seeing them together may help me understand the layout and concept.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: HELP! need an example

    You didn't bother to return to the last thread you started: Trouble adding a BufferedImage to a JFrame

    Why should we expect any better behavior this time round?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    ejyption is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default Re: HELP! need an example

    Quote Originally Posted by DarrylBurke View Post
    You didn't bother to return to the last thread you started: Trouble adding a BufferedImage to a JFrame

    Why should we expect any better behavior this time round?

    db

    Hey db,
    I am new to the website and do not know how to place code that is formatted properly in a 'code area' so to speak, and i gave up on trying with that thread. Also, i thought it would be much easier to get an example and learn from it rather than trying to have someone look into my code and try to fix it.
    Regards,
    E

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: HELP! need an example

    A general misconception people have - by glaring at code you do not gain understanding, you only get the code you can copy/paste so you don't have to understand. If that's how you want to do things, you're on your own. In this forum you'll only be helped towards understanding stuff, which involves you writing the code and us guiding you towards a correct working solution by providing links to documentation, hints and tips and a dash of theory where necessary. In that scenario 95% of the effort is still made by you, as it should be.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •