Is there any way to display a file that contains text and pictures

Hi all,
I was wondering if java has any way to display a file that contains both text and pictures. I have tried using the RTFEditorKit and using an RTF file and it only diplays the text contained in the file and omits the pictures all together.
code:
import java.awt.*;
import java.io.*;
import javax.swing.*;
import javax.swing.text.rtf.RTFEditorKit;
public class Test
     JScrollPane scroll;
     JEditorPane edit=new JEditorPane();
     RTFEditorKit kit=new RTFEditorKit();
     public Test()
          final JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     edit.setEditorKit(kit);
     edit.setEditable(false);
     try
          kit.read(new FileReader(new File("Installation.rtf")),edit.getDocument(),0);
          catch(Exception e)
               JOptionPane.showMessageDialog(null, e);
     frame.getContentPane().add(new JScrollPane(edit));
     Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          frame.setBounds(0,0,screenSize.width, screenSize.height);
     frame.show();
     public static void main(String[] args)
new Test();
Please help!
thanks in advance,
Denise

Not good as that usually means the project itself was corrupt.
Any chance you sync'd to Creative Cloud? That's the only way I know of that backs up your PS Touch (PSDX) files.

Similar Messages

  • Is there any way to recover a file that has somehow become not a valid Photoshop Touch project?

    I have been working on a piece of art for the last month and all of a sudden when I went to open it this evening the app was unable to open the file. Please Help!

    Not good as that usually means the project itself was corrupt.
    Any chance you sync'd to Creative Cloud? That's the only way I know of that backs up your PS Touch (PSDX) files.

  • Is there any way to delete duplicate files en mas within the new itunes program?

    I've just installed the new itunes program on my laptop. I used the scan for media option to find music. Problem is almost every entry and there's several hundred of them is duplicated and in some cases triplicated within the itunes media library.
    Question ... Is there any way to delete duplicated files en mas withing the itunes library folder?
    Please don't tell me that I'm going to have to do it individually as that may take days.
    Thanks

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • Is there any way to create a file compatible with Premiere Pro

    Is there any way to create a file in Premiere elements that is compatible with Premiere Pro and that can be used in Premiere Pro

    Consternation
    The important information that I do not see mentioned nor offered by you.
    1.What version of Premiere Elements are you using and on what computer operating system it is running? What version of Premiere Pro do you want to use?
    The Premiere Pro Import Supported Formats seem to indicate that it will accept the Premiere Elements project.prel (project file) on Windows Only.
    Adobe Premiere Pro Help | Supported file formats
    This may or may not be possible depending on damaged projects or outdated elements.
    2. If you want to export your Premiere Elements Timeline to a file saved to the computer hard drive and subsequently import that into your Premiere Pro version, that "should" work. You would go to the Premiere Elements Publish+Share/Computer/ and make a selection based on what the Premiere Pro Import Supported file formats are and what you need. I can help you with that. But, details first.
    But, just a "beware"...when you get to Premiere Elements 11 or 12 (if that is the version involved) Publish+Share/Computer/ there are several categories, but all you see is Adobe Flash Video, MPEG, and AVCHD. The rest of the list that includes AVI and QuickTime which both need to be scrolled to all of the time to see them, not just sometimes, with the thin scroll bar to the right of the list of choices. You can export files
    with AVI file extension, under Publish+Share/Computer/AVI
    with MOV file extension, under Publish + Share/Computer/QuickTime
    And, if you do not have QuickTime installed on your computer with Premiere Elements, you are not going to have presets for the QuickTime export.
    Remember, there is more to an export than just its file extension. Know your other export properties as well.
    In many cases, you can customize the export settings to suit your requirements.
    Problems will exist if you are trying to go from Premiere Elements Windows to Premiere Pro Mac or vice versa.
    I would be glad for the opportunity to help you with this issue, but details are needed.
    Looking forward to your follow up.
    Thanks.
    ATR

  • Is there any way to convert video files and keep my project in Final Cut Pro 7?

    I am currently editing a project, and have been having multiple issues with freezing while editing. Upon doing some quick research, I learned it is bcause my clips are in the h.264 format, which is not a good editing codec. Is there any way to change the codec of the videos and keep the project I have?

    You might need to relink the timeline to the new media. Just take the H.264 files offline, and reconnect to the new media. If you media managed the sequence, it'd relink. But then you are only converting the files used in the sequence, not all your media.

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Using pages, I saved the wrong file thereby overwriting the file I want.  Is there any way to get the file I want back?

    Is there any way to recover a file if you have overwritten it?

    When I do that: Pages>Revert to > I don't get a chance to "Browse all Versions"  Instead it says, "no Document"

  • Is there any way to display filenames or captions for photos?

    is there any way to display filenames or captions for photos?

    Thanks. There are so many it's very hard to see which one does what. Since I edit  on the MacBook Pro using Photoshop Elements, all I really need is a way of seeing the filenames, and secondarily re-arranging thumbnails on the iPad screen manually.

  • Is there any way to use a file transfer protocol to upload files to icloud?

    Is there any way to use a file transfer protocol to upload files to icloud?

    Unfortunately, no.
    You will need a 3rd party web host to upload your websites to. Depending on the version of iWeb you are using you have a couple of publishing options:
    iWeb ’09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like “www.YourDomain.com/sitename/Home.html )
    iWeb ’08 you can publish your website to a local folder
    Basically all Web Hosting companies are iWeb-compatible.
    If you’re looking for a good hosting I would recommend IX Web Hosting I have been using them to host my own websites for several years now and that their customer support is awesome too.
    http://jeffnitschke.com/IXWebHosting.html
    http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
    "I may receive some form of compensation from my recommendation or link."

  • Is there any way to play all files in a directory by one url?

    Hi all,
    I am testing fms this days, I have put all my files(such as 1.mp3,2.mp3...n.mp3) in my directory.
    I can play single file fine with url like this:
    rtmp://localhost/mp3/mp3:x/2
    but i want to know is there any way to play all files in my direcotry?
    for example, user click the play button, the player(smp) automatic plays all files in the directory, link windows media server.
    Should I use playlist? Or there is another better way?
    Thanks a lot.

    Hi,
    FMS do not directly take a directory to play files, the file names have to be fetched some way (through script if needed) to make a playlist and then the play command needs to be repeated as many times.
    Thank you !

  • Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007

    Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007.

    If you are using iWeb V 3, there are two other options for publishing the site...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    Some pointers for choosing hosting...
    http://www.iwebformusicians.com/iWeb/Website-Hosting.html

  • HT4407 Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    No. This issue is dicussed here frequently. The only option is to be patient and try often. Search this forum for other posts about this issue.

  • Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    There are "container" apps emerging for the iPad.  Enough searching & I suspect there would be one for your needs. 
    All in one Application that emphasize security
    Good Collaboration Suite  Secure mobile app-to-app collaboration.
    The Good Collaboration Suite includes Good for Enterprise, Good Share and Good Connect secure mobile apps, simplifying access to email, calendar, contacts, tasks, instant messaging, browsing and document sharing. These apps are built using Good’s next-gen containerization   that includes secure data sharing between any Good secured app as well as app-level encryption independent of the device used."
    http://www1.good.com/applications/

  • Is there any way to recover lost files and folder? I shared my desktop and suddenly I lost every single file in it.

    Is there any way to recover lost files and folder? I shared my desktop and suddenly I lost every single file in it. I have a MacBook Air.
    Processor  1.8 GHz Intel Core i5.
    Memory  4 GB 1600 MHz DDR3

    From your backup

Maybe you are looking for