Results 1 to 6 of 6
  1. #1
    BluXit is offline Member
    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    0

    Default Some question to make Image Viewer

    Well, I'm new to java. And now my lecture gave me an assignment to create simple image viewer.
    My 1st question is :
    How to adding icon next to a menu item ?
    In the image shown, I mean like first, prev, next, last icon.
    Really Thanks
    Attached Thumbnails Attached Thumbnails Some question to make Image Viewer-1.jpg  

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,574
    Blog Entries
    7
    Rep Power
    21

    Default

    You can create a JMenuItem with an Icon (and caption text). Read the API documentation for details.

    kind regards,

    Jos

  3. #3
    BluXit is offline Member
    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    0

    Default

    Well I'm still confused how to use API Documentation.
    If you can help me?

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,574
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by BluXit View Post
    Well I'm still confused how to use API Documentation.
    If you can help me?
    Read it? Here it is.

    kind regards,

    Jos

  5. #5
    BluXit is offline Member
    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    0

    Default

    @JosAH
    Thanks. But now I have different problem, How to read image file? So if I click the 'process images' the program will read the file.
    Need the coding please. Thanks

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by BluXit View Post
    @JosAH
    Thanks. But now I have different problem, How to read image file? So if I click the 'process images' the program will read the file.
    I generally use ImageIO.read(...) to read in an image file. The API will help you learn how to use this class and static method.


    ... Need the coding please. Thanks
    You're not going to get "the coding", sorry. We're more than glad to help those who show effort, but we're not a code-producing service. So please check out the API, do your best to solve this with your code, and come back with your code if your stuck and we'll be more than glad to try to help you, but please don't ask for "the code". Best of luck in this assignment.
    Last edited by Fubarable; 04-14-2010 at 04:34 AM.

Similar Threads

  1. A question about displaying an image...
    By SpaceY in forum New To Java
    Replies: 0
    Last Post: 08-24-2008, 06:50 PM
  2. Replies: 24
    Last Post: 07-29-2008, 04:04 PM
  3. [SOLVED] Question about java.awt.image
    By byuu in forum AWT / Swing
    Replies: 18
    Last Post: 05-13-2008, 04:10 AM
  4. Replies: 1
    Last Post: 01-15-2008, 07:12 PM
  5. Label image Question
    By Soda in forum New To Java
    Replies: 3
    Last Post: 12-10-2007, 03:38 PM

Posting Permissions

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