Results 1 to 6 of 6
  1. #1
    Mostafa_mech is offline Member
    Join Date
    Jun 2010
    Posts
    11
    Rep Power
    0

    Default Adding image in Gui desktop application

    Hello Everyone

    I have made a Gui application with Netbeans drag and drop tool, and I have added a taped panel in this Gui so I have several taps in my application.

    My question is how to add an image a certain tap. The problem is that I do not know where to write the code in the netbeans generated code.

    Thanks for attention

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

    Default

    What are "taps"? Can you provide more detail? Have you tried creating your application without NetBeans drag-and-drop, but rather doing it by hand? If you do this, with the aid of the Sun/Oracle tutorials, you will learn quite a bit about Swing coding and Java.

  3. #3
    Mostafa_mech is offline Member
    Join Date
    Jun 2010
    Posts
    11
    Rep Power
    0

    Default

    Yes I tried before to write the code from the beginning , but this is very boring. I mean with tabs the various panels branching from the mother panel. Similar to the taps of the web browser.

    How then I can put an image on a drag-drop netbeans GUI ?

  4. #4
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    For small applications it's better to do hard code than drag-drop from IDE, you will learn a lot about Java.
    And, adding images to tab, then this link How to Use Tabbed Panes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) will help.

    -Regards

  5. #5
    PsiloCybin is offline KushSmoker
    Join Date
    Jan 2013
    Posts
    7
    Rep Power
    0

    Default Re: Adding image in Gui desktop application

    Does netbeans have the same problem as eclipse? I have tried adding images in eclipse and cannot compile the .jar with them there..

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    18

    Default Re: Adding image in Gui desktop application

    Neither of them have a problem, and do you really think that resurrecting a 2 1/2 year old thread is a good idea?
    Try and keep it to your thread.
    I'm going to lock this one.
    Please do not ask for code as refusal often offends.

Similar Threads

  1. Desktop Application
    By vineet osho in forum New To Java
    Replies: 3
    Last Post: 06-13-2010, 05:37 AM
  2. Adding Splash screen to my desktop project
    By AhmedAdel in forum New To Java
    Replies: 0
    Last Post: 04-18-2010, 01:43 PM
  3. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  4. Desktop Application - Suggestions
    By jedai in forum AWT / Swing
    Replies: 0
    Last Post: 04-26-2009, 04:43 AM
  5. three tier Desktop Application
    By newmember in forum AWT / Swing
    Replies: 0
    Last Post: 07-27-2008, 03:10 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
  •