Save As - right pane only

I have a Java applet that displays a tree of objects and documents on the left pane of the browser, and on the right pane it displays the actual documents (such as a MS Word document). In IE 4 and I think IE5 too, when you went to the Save As menu option it would prompt to save that document in it's proper format, however, in IE6, if you do the Save As, it proceeds to save the entire page with a subdirectory containing the document..this is not what i want...I want it to behave the same way it did in the earlier versions of IE.
I've now added a context menu item, but I don't know what Java code I need to use in order to just save the document pane. Any help would be appreciated,
Thanks.

What isn't clear? When I go to the web site it displays a treeview of documents\objects in the left frame and when I select an object in the left frame, it displays the corresponding document in the right frame. All that is fine. However when using Internet Explorer 6 and I go to the File Menu and select Save As, it prompts to save the entire html pages. I only want it to save the document in it's original native format...not all the html pages. This worked fine with Internet Explorer 4 and Internet Explorer 5. Seems like Microsoft changed the way it saved in IE6.
So as a result I want to add a menu item to the context menu for just saving the document and not saving the enitre html code and related files for that page.
To see what I mean go to a web page that has frames and do a save as, and it will save everything and put the files from the right frame into a subdirectory of the same save file name.
I hope that makes sense.

Similar Messages

  • How to add buttons/text to right pane when selection is made from left pane

    Hi,
    I am new to JAVA development with SWING.
    I am trying to create an application where in the left pane there is a Tree Menu and in the right pane I have some buttons. Based on the selections in the left Pane, I should be able to add more buttons and or text to the right pane.
    How do I accomplish this? If you guys have any sample code, Please post it or suggest different ways of accomplishing.
    Thanks in advance.
    user2325986

    It looks like you are declaring different main_Frame, rightPane and leftPane and have too many items static and final. Take a look at the code below. I have set GridBagLayout for the frame for a better look.
    I am not sure what you mean when you say that you want right panel only and want to add to it. Also, I think you would be better off using CardLayout for rightPanel as stated by jduprez
    When you want to show code use {_code_} code here {_code_} tags (code in brackets without underscores)
    Here is a working sample of what you had:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import javax.swing.tree.*;
    public class Main
        public static void main(String[] args)
            main_Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            main_Frame.setVisible(true);
        public static TestFrame main_Frame = new TestFrame();
    class TestFrame extends JFrame
        public TestFrame()
            setTitle("Test Frame");
            setSize(500, 500);
            setLayout(new GridBagLayout());
            leftGBC = new GridBagConstraints();
            leftGBC.gridx = 0;
            leftGBC.gridy = 0;
            leftGBC.fill = leftGBC.BOTH;
            leftGBC.weightx = 10;
            leftGBC.weighty = 100;
            rightGBC = new GridBagConstraints();
            rightGBC.gridx = 1;
            rightGBC.gridy = 0;
            rightGBC.fill = rightGBC.BOTH;
            rightGBC.weightx = 100;
            rightGBC.weighty = 100;
            leftPanel = new JPanel();
            leftPane = new JScrollPane(leftPanel);
            leftPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            leftPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            rightPanel = new JPanel();
            rightPane = new JScrollPane(rightPanel);
            rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("main_Tree");
            DefaultMutableTreeNode Branch1 = new DefaultMutableTreeNode("Branch1");
            DefaultMutableTreeNode Leaf1 = new DefaultMutableTreeNode("Leaf1");
            root.add(Branch1);
            Branch1.add(Leaf1);
            DefaultMutableTreeNode Branch2 = new DefaultMutableTreeNode("Branch2");
            DefaultMutableTreeNode Leaf2 = new DefaultMutableTreeNode("Leaf2");
            root.add(Branch2);
            Branch2.add(Leaf2);
            JTree tree = new JTree(root);
            tree.setRootVisible(true);
            tree.setShowsRootHandles(true);
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
            tree.addTreeSelectionListener(new TreeSelectionListener()
                public void valueChanged(TreeSelectionEvent se)
                    JTree tree = (JTree) se.getSource();
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                    if (node == null) return;
                    String nodeInfo = node.toString();
                    if (nodeInfo.equals("Leaf1"))
                        rightPanel = new JPanel();
                        rightPanel.add(label);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
                    if (nodeInfo.equals("Leaf2"))
                        rightPanel = new JPanel();
                        rightPanel.add(Jbt2);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
            DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) tree.getCellRenderer();
            tree.setRowHeight(30);
            renderer.setLeafIcon(new ImageIcon("blue-ball.gif"));
            renderer.setOpenIcon(new ImageIcon("red-ball.gif"));
            renderer.setClosedIcon(new ImageIcon("yellow-ball.gif"));
            renderer.setFont(new Font("Monospaced",Font.BOLD|Font.ITALIC,15));
            renderer.setTextNonSelectionColor(Color.blue);
            renderer.setTextSelectionColor(Color.white);
            renderer.setBackgroundNonSelectionColor(Color.white);
            renderer.setBackgroundSelectionColor(Color.gray);
            renderer.setBorderSelectionColor(Color.lightGray);
            leftPanel.add(tree);
            add(leftPane, leftGBC);
            add(rightPane, rightGBC);
        private JPanel leftPanel;
        private JPanel rightPanel;
        private JScrollPane leftPane;
        private JScrollPane rightPane;
        private GridBagConstraints leftGBC;
        private GridBagConstraints rightGBC;
        private JButton Jbt1 = new JButton("Button1");
        private JButton Jbt2 = new JButton("Button2");
        private JLabel label = new JLabel("Enter your message below");
        private JTextArea jta = new JTextArea(10,15);
        private JButton Jbt3 = new JButton("Button3");
        private JButton Jbt4 = new JButton("Button4");
    }

  • No right pane Soundtrack pro

    Hello friends,
    I am unable to get my right pane in sound track pro. the right pane contains all the music library and stuff... few days ago some error was coming whenever  i opened STP it was saying some plist file is missing.....the error was having only to options cancel or continu I tried both .... since then my right pane is missing from the STP.
    I tried trashing prefrances and all the steps given on apple STP support site for troubleshooting. I also tried the toolbar button and keyboard shortcut c'trl+d,
    I also tried calling apple support number but could not get much help..
    Please help ...

    Go to Window>Layouts>Standard... see if that helps.

  • In the program pages there is a function that automatically will save may document not only one i click save

    in the program pages there is a function that automatically will save may document not only one i click save

    In Lion and Mountain Lion you must save the first time then it will autosave for you with versions.
    ForEverSave, a 3rd party application, might actually prompt you after a set period. Check it out and any alternatives.
    Peter

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • How do I turn turn off the right pane in Adobe Reader XI?

    I have been using Adobe Reader since 2007, and recently I have been unable to turn off the right pane while reading. If anyone knows how I can deal with this problem, I would really appreciate it.
    Thanks
    Don Randall

    How To Turn Off The Right Pane
    To stop the "Tools|Comments" sidebar from automatically opening every time you open a PDF so that you can view your PDF in full screen, this solution worked for me on both my desktop PC and laptop.
    This is the solution:
    Go to C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Services (for win7 64-bit) or C:\Program Files\Adobe\Reader 11.0\Reader\Services (for win7 32-bit)
    Find and Delete these 2 files: DEXShare.spi and DEXEchoSign.spi
    Yes, you will still see the word "Tools| Comments" at the top but at least your PDFs will open in full screen and you won't have to click "Tools" to hide that stupid sidebar every time you open a PDF.

  • New feature Pan Only Error

    Hi, people
    When I try use the new feature in Pan Only I recieve this mesage. In image attached
    Any one has a tip?
    Thanks

    Appearently new phones running MP Brew are in the works but I don't suspect they will be out until late this year.  This question has been posted more than a few times and Verizon is unwilling to give an answer.  The fact that no one is previewing a phone should also be telling as to when the new phones will ship. 
    Here is the link to the article: http://mobile.engadget.com/2011/06/03/qualcomm-ships-one-billion-brews-verizon-thirsty-for-more/

  • Webhelp right pane not displaying in IE10 for Windows 7

    Hello,
    I'm using Robohelp 9 - HTML, and generating Webhelp using IE10 on Windows 7. When I generate the help, the default topic displays. However, if I click any page within a book, the right-pane displays blank. But, if I make the browser window smaller, the content displays in the right-pane. After which, maximizing the browser, the content continues to display in the right-pane, as expected. Any thoughts on why the right-pane content doesn't display initially?
    Thanks,

    I'm confused by your post number 5. You said that IE10 was opening the right pane, which I read as opening with the content.
    The RoboHelp 9 fix was written by a highly respected user who I believe applied the same code.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Macbook pro sound defaults to right speaker only

    How do I set the sound output to not change to the right speaker only by default? It resets itself every so often.

    Welcome to Apple Support Communities
    Your graphic is damaged. Take it to an Apple Store

  • Table in new Pan Only Feature

    Hi,
    I would like to know if tables is suitable to this new feature in Folio 1.5
    I've tried, but didn´t work.
    Any tip?
    Tks
    Felipe

    Hi Johannes,
    I am playing with scrollable tables only because of Felipe's post.
    From my testing, pan-only method crashes InDesign during updating Folio Builder.
    Layered method works fine, but you don't have a chance to add hyperlinks.
    So, importing a pdf, or as you write, an indd file itself seems to be a good compromise;-)
    The beauty of using a link to indesign file is, that you can easily update it, without messing inside the output file.
    And you can place linked content directly in the container window, without copy/paste step.
    But if you want working hyperlinked buttons, you have to add them in your output file, and copy the group into the container.
    Cheers,
    Tomek
    Tomasz, you can also import this indesign-file itself, instead of going
    through a PDF, if that makes things easier for you.

  • RH8, AIR Help - Any way to increase padding in right pane?

    Hi all,
    My client wants to try the AIR Help format for the next release of their product. They currently distribute it as a .chm. The one pesky issue I'm running into after upgrading to RH8 and generating the AIR Help is that when topics are displayed in the right pane, there isn't enough space (padding) on the left side. The text is jammed up against the divider bar between the left and right panes. This is not a problem if I compile it as a .chm.
    I use one master page (template) for all topics and although I tried adjusting the left margin as a workaround, the existing topics don't pick up this change (even if I temporarily set them to use a different master page, and then switch it back). Any other solutions or workarounds are appreciated!
    Thanks,
    Katie
    Katie Carver
    Senior Technical Writer
    Docs-to-You, LLC
    Phoenix, AZ

    Hi there
    How about this?
    Click here to visit the Wish Form/Bug Reporting Form
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Calendar app crashes when selecting save for this event only

    When putting my work schedule into the calendar app, I usually put it in as a repeating event until a certain date. If I edit one of those days and hit "Save for this event only" the app will crash. It does save, but the crash is quite annoying.

    I'm having a similar issue, but mine is crashing when I try to delete one occurrence of a repeating event, and when I re-open the calendar the event I'm trying to delete is still there. This only began after the 8.3 update. Eventually I just gave up and deleted it on my Macbook at home, but there's obviously a bug in the update.

  • Graphic problem in LR5 right pane

    When selecting images in Library module for a slideshow, the right pane switched to a muddy yellow color. 
    After minimizing the LR5 window, the muddy yellow box remained on the desktop.  Could this be a LR5 glitch/bug?

    Does it happen often?Or just once?

  • Acrobat Reader DC: Open with right pane closed?

    Is there a preference so that Acrobat Reader DC will open a PDF with the right pane closed (for desktop, either Windows or OSX)?

    It is very much annoying that this side pane shows up every time I open a document. It is also the reason I am currently thinking of switching to another PDF reader, so I would like to see how Adobe is coming to their senses and give us an option to disable it.

Maybe you are looking for

  • Calculate Opening and Closing Stock

    Hi all,       Plz tell me logic how to calculate Opening Stock and Closing Stock of material of any particular date of month........... Thanks in Advance. Pradip Pawar

  • MIRO Credit Memo

    How do I delete a credit memo created through MIRO? I am not able to delete it through MR8M. Or how I clear it, as I need to pay the vendor but because of this credit memo I am not able to pay as it says debit balance exists for this vendor Also need

  • How to change in technical name

    Hi BW friends I have created a process chain on a DSO and i have named it as xyz,but the requirement is to name the chain as xyz daily.is there any process of changing the technical name? Thank You.

  • Problem with BM 3.9 snapins

    Hi all, The Bordermanager 3.9 snapins open extremely slowly on iManager on our site. When I try to open them through iManager on a netware server, it sits for a long time before eventually timing out with a 'service unavailable error 503' message. Th

  • What exactly means Linked Subreport?

    <p>What exactly means Linked Subreport?</p><p>When i create a primary report with fields customer id & Country and subreport with Customer id & Lastyear'sSales and try to link the subreport by selecting Customer id the subreport shows only the data f