Results 1 to 3 of 3
  1. #1
    ShadowWalker is offline Senior Member
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    113
    Rep Power
    0

    Default Load documents with images or graphics inside

    Greetings

    I am almost in the end of one project and I would like to add some tools that will make the user more friendly with the program so I decide to create something like
    mini help frame in which I will explain every part of my program. Now I am going of course to create a class for example let's say HelpFrame in which I am going to have a lot of categories and the user will choose one of them and with the help of cardLayout I am going to show inside the Frame doc files which explain the current category that user ask for , so my first thought was to make a frame then use BorderLayout, on the West I am going to add the Panel with the users options and in the Center of the BorderLayout I am going to find a way to display this doc files (if I am going to use JPanels then I will have to use cardLayout so I can change JPanels inside the frame) so my first thought was to create a JEditor or JTextPane and read/open the doc file. Ok that was fine for files with only plain text as I was expected but the problem that I have to deal with is how to open a doc file when this file contains Images and plain text of course?
    Is it possible with JEditor or JTextPane? or I have to find another way to do something like that..

    I read the JEditor API and I find out about HTML solution (if I have right) but I want to leave this option as the last one cause I am not good at all in HTML

    I have found a solution but I guess is very bad way and neither like it at all . I can create Images rather than doc files and then I can just draw or add that images into JLabel and show them inside the Frame.. but I don't want to do something like that cause I feel like it is the wrong way..

    Thanks in advance

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

    Default Re: Load documents with images or graphics inside

    Have a look at the JavaHelp system: https://javahelp.java.net/. It can do all that you want.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    ShadowWalker is offline Senior Member
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    113
    Rep Power
    0

    Default Re: Load documents with images or graphics inside

    Thanks you !! i am going to check it right now

Similar Threads

  1. Replies: 0
    Last Post: 08-13-2012, 09:00 AM
  2. Is it possible to load images.....
    By aw249 in forum New To Java
    Replies: 3
    Last Post: 02-10-2012, 02:50 PM
  3. Replies: 0
    Last Post: 10-27-2011, 03:15 PM
  4. Can't load images
    By iTyGuy32 in forum New To Java
    Replies: 2
    Last Post: 07-30-2011, 04:57 AM
  5. load graphics in html page using jsp and database
    By charu in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-04-2009, 07:12 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
  •