Saving contents of jinternal frame

Hi, I seem to have a problem saving files from jinternal frames. I created two files, the main GUI which holds the jdesktop pane and the other file (Documento) extends jinternalframe. I want to be able to save the current (active) jinternal frame but I have no idea how to do it. can anyone help me?
import javax.swing.JInternalFrame;
import javax.swing.JDesktopPane;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JMenuBar;
import javax.swing.JFrame;
import javax.swing.KeyStroke;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.Graphics.*;
import javax.swing.JOptionPane;
import java.io.*;
import java.util.*;
*This is the main GUI of the program.
public class mainGUI extends JFrame
                               implements ActionListener,
                                KeyListener{
    JDesktopPane desktop;
    Documento frame;
     private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
     private JPanel toolbar, editarea, resultarea, blankPanel;
     private JMenu file, edit, project;
     private JMenuItem f_open, f_new, f_save, f_saveas, f_exit, e_select, e_copy, e_paste, p_compile;
     private JTextArea resultfield, editfield,editArea, tstr;
     private JButton bcompile;
     private JFileChooser fc = new JFileChooser();
     private String filepath;
     private ImageIcon bugicon;
     private static int docNum = 0;
     private boolean b_openfile;
     File filename;
    public mainGUI() {
        super("DGJ Program Scanner");
        setSize(800,600);
          setLocation((screen.width-800)/2, (screen.height-600)/2);
        /*Creates the workspace*/
        desktop = new JDesktopPane();
        setContentPane(desktop);
        setJMenuBar(createMenuBar());
        /*Make dragging a little faster*/
        desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
      *This function creates the menu bar
    protected JMenuBar createMenuBar() {
         /*Initializes/instantiates the menu bar and its items*/
          file = new JMenu("File");
          edit = new JMenu("Edit");
          project = new JMenu("Project");
          f_new = new JMenuItem("Create new file");
          f_open = new JMenuItem("Open file...");
          f_save = new JMenuItem("Save current file");
          f_saveas = new JMenuItem("Save As...");
          f_exit = new JMenuItem("Exit program");
          e_select = new JMenuItem("Select All");
          e_copy = new JMenuItem("Copy selected");
          e_paste = new JMenuItem("Paste selected");
          p_compile = new JMenuItem("Scan current file for errors");
          /*Adds listeners to the menu items*/
          f_open.setActionCommand("f_open");
          f_open.addActionListener(this);
          f_save.setActionCommand("f_save");
          f_save.addActionListener(this);
          f_saveas.addActionListener(this);
          f_saveas.setActionCommand("f_saveas");
          f_new.setActionCommand("f_new");
          f_new.addActionListener(this);
          f_exit.setActionCommand("f_exit");
          f_exit.addActionListener(this);
          e_select.setActionCommand("e_select");
          e_select.addActionListener(this);
          e_paste.setActionCommand("e_paste");
          e_paste.addActionListener(this);     
          e_copy.setActionCommand("e_copy");
          e_copy.addActionListener(this);               
          /*Creates the icon of the bug*/
          bugicon = new ImageIcon("images/ladybug.gif");
          /*Creates the menu bar*/
          JMenuBar menu = new JMenuBar();
          menu.add(file);
               file.add(f_new);
               file.add(f_open);
               file.add(f_save);
               file.add(f_saveas);
               file.add(f_exit);
          menu.add(edit);
               edit.add(e_select);
               edit.add(e_copy);
               edit.add(e_paste);
          menu.add(project);
               project.add(p_compile);
          /*Disables the save current file menu...(when program starts, no file is open yet)*/
          f_save.setEnabled(false);
          f_saveas.setEnabled(false);
        return menu;
    //React to menu selections.
    public void actionPerformed(ActionEvent e) {
        if ("f_new".equals(e.getActionCommand()))
        { //new
            createFrame(null);
            f_saveas.setEnabled(true);
        else if("f_open".equals(e.getActionCommand()))
        {//open documento
               fc.setFileFilter(new SpanFilter());
              int retval = fc.showOpenDialog(mainGUI.this);
               tstr = new JTextArea();
               /*This checks if the user has chosen a file*/
            if (retval == JFileChooser.APPROVE_OPTION) {
                filename = fc.getSelectedFile();
                    filepath = filename.getPath();            
                    openFile(filename, new Point(30,30));       
        else if("f_save".equals(e.getActionCommand()))
             try {
                  BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                  String str;
                  str = editArea.getText();
                  editArea.setText("");  
                  int length = str.length();
                  out.write(str, 0, length);
                  out.close();
                   } catch (Exception ex) {}
                   JInternalFrame fr = new JInternalFrame();
                   fr = desktop.getSelectedFrame();
                   Point p = fr.getLocation();
                    fr.dispose();    
                   openFile(filename, p);
        else if("f_saveas".equals(e.getActionCommand()))
             fc.setFileFilter(new SpanFilter());
              int retval = fc.showSaveDialog(mainGUI.this);
            if (retval == JFileChooser.APPROVE_OPTION) {
                filename = fc.getSelectedFile();
                    filepath = filename.getPath();
                    if(!(filepath.contains(".dgj")))
                         filepath+=".dgj";
                  try {
                       BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                            String str;
                       str = editArea.getText();
                       int length = str.length();
                       out.write(str, 0, length);
                       out.close();
                   } catch (Exception ex) {}
                   Point p = frame.getLocation();
                    frame.dispose();
               //     editArea.setText("");     
                   openFile(filename, p);
        else if("e_select".equals(e.getActionCommand()))
             editArea.selectAll();
        else if("e_copy".equals(e.getActionCommand()))
               editArea.copy();
        else if("e_paste".equals(e.getActionCommand()))
             editArea.paste();
        else if("f_exit".equals(e.getActionCommand()))
        { //quit
            quit();
    public void openFile(File filename, Point p)
                    /*Reads the file*/
                    try {
                       BufferedReader in = new BufferedReader(new FileReader(filepath));
                         String str;
                         /*empties the textarea*/
                         tstr.setText("");
                         str = in.readLine();
                         /*Copy each line of the file into the temporary textarea*/
                       do{  
                      tstr.append(str);
                      str = in.readLine();
                      /* the "\n" is for the line to appear in the next line in the textarea,
                       * the "\r" is for windows system, wherein "\r" is required for the text
                       * to appear in beginning of the first line*/
                      if(str!=null)
                           tstr.append("\r\n");
                       }while (str != null);
                         /*Opens the new frame*/
                       createFrame(filename, filename.getName(), tstr.getText(), p);
                       in.close();
                   } catch (Exception ex){}
                  b_openfile = true;
                  f_save.setEnabled(true); 
                  f_saveas.setEnabled(true);   
     *Create a new internal frame.
    protected void createFrame(File f) {
         frame = new Documento(f);
     /*     frame = new JInternalFrame("Document "+(++docNum),
              true, //resizable
              true, //closable
              true, //maximizable
              true);
        docNum++;
          frame.setSize(600,400);
          frame.setLocation(20*(docNum%10), 20*(docNum%10));       
         editArea = new JTextArea();
          JScrollPane scroll = new JScrollPane(editArea);     
          editArea.addKeyListener(this);
          editArea.append("");
          frame.add(scroll);
        frame.setVisible(true); //necessary as of 1.3
        desktop.add(frame);
        try {
            frame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}
      *Overwrite an existing internal frame for an open file
    protected void createFrame(File f, String title, String text, Point P) {
         frame = new Documento(title, f, P);
          frame.setSize(600,400);
          frame.setLocation(P); 
         editArea = new JTextArea();
          JScrollPane scroll = new JScrollPane(editArea);     
          editArea.setText("");
          editArea.addKeyListener(this);
          editArea.append(text);
          frame.add(scroll);
        frame.setVisible(true); //necessary as of 1.3
        desktop.add(frame);
        try {
            frame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}
    //Quit the application.
    protected void quit() {
        System.exit(0);
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
    private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
        //JFrame.setDefaultLookAndFeelDecorated(true);
        //Create and set up the window.
        mainGUI frame = new mainGUI();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //Display the window.
        frame.setVisible(true);
    public void keyTyped(KeyEvent k){}
    public void keyPressed(KeyEvent k)
         if(k.getKeyCode()==10)
              editArea.append("\r");           
    public void keyReleased(KeyEvent k){}
    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
}here's the one that extends jinternalframe
import javax.swing.JInternalFrame;
import javax.swing.plaf.InternalFrameUI;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import java.util.*;
/* Used by mainGUI.java */
public class Documento extends JInternalFrame {
    static final int xOffset = 30, yOffset = 30;
     static JTextArea editArea;
     static int docNum = 0;
     static File file;
      *The constructer for a new documento
    public Documento(File file) {
        super("Document "+(++docNum),
              true, //resizable
              true, //closable
              true, //maximizable
              true);//iconifiable
        docNum++;
          this.file = file;
          setSize(600,400);
          setLocation(xOffset*(docNum%10), yOffset*(docNum%10));
//        setUI(new InternalFrameUI());
     *The constructor for an existing documento
    public Documento(String title, File file, Point p) {
        super(title,
              true, //resizable
              true, //closable
              true, //maximizable
              true);//iconifiable
          this.file = file;             
          setSize(600,400);          
          setLocation(p);
//        setUI(new InternalFrameUI());
    public int getNum()
         return docNum;
    public File getPath()
         return file;
}I know it's pretty lengthy...it's probably all messed up since I'm lost :p
Thanks if you could help me!

I would be glad to help, but first I need a clarification. If I understand properly, you have two Java classes that you have created: the "main GUI" (which is most likely a JFrame extension in which the constructor adds a JDesktopPane to the content pane) and "Documento" (which you say is a JInternalFrame extension).
My question is this: what do you mean by "save the current JInternalFrame"? Do you want to record its position, location, and identity? Do you want to save its contents?
Thanks. Good luck. ;)

Similar Messages

  • JInternal frames.. please help

    Hi All,
    Can anyone tell me how to set JInternal frames as unmovable?
    I want to add it to a content pane and not alow the users to move it around,..
    Thanks

    hi,
    if i had to do the same i'd have followed the below coding.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    public class Test extends JInternalFrame {
       // location variables to set the initial
       // location of the internalframe
       private int x;
       private int y;
       public Test(int x, int y)
          super("Sample", true, true, true, true);
          this.x = x;
          this.y = y;
          setLocation(Integer.MIN_VALUE, Integer.MAX_VALUE);
       public Test(Point loc)
          this(loc.x, loc.y);
       public Test()
          this(0, 0);
       /* Overriden method.
        * If this does'nt work then comment this method & uncomment
        * processMouseMotionEvent(MouseEvent) method.
       public void setLocation(int x, int y)
          super.setLocation(this.x, this.y);
       /* Overriden method.
        * If this does'nt work then comment this method & uncomment
        * processMouseMotionEvent(MouseEvent) method.
       public void setLocation(Point p)
          super.setLocation(this.x, this.y);
       public static void main(String args[])
          Test test = new Test();
          test.setSize(300, 300);
          JFrame frame = new JFrame("ATest");
          JDesktopPane pane = new JDesktopPane();
          frame.setContentPane(pane);
          pane.add(test);
          frame.pack();
          frame.show();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       /* Overriden method.
        * If the above setLocation methods does'nt stand to your
        * expectations, then you may try with the following method.
        * Note: You may risk the mouse dragging feature if you are
        *       implementing mouse dragging feature in the internal frame.
    /*   protected void processMouseMotionEvent(MouseEvent e)
          if(e.getID() == MouseEvent.MOUSE_DRAGGED)
             e.consume();
          } else
             super.processMouseMotionEvent(e);
    }though i've'nt tested the code, it should work smoothly. there might be more easier way to achieve what you want.
    hope this helps you,
    regards,
    Afroze.

  • How to change the content of a frame

    Hi,
    I want to create a link that refreshes the content of a frame in my page.
    I guess that Oracle Portal does not support frames.
    That's why I wonder if I'm obliged to developp a new page each time I just want
    the content of a frame to be updated ?
    Thanks for your help,
    Best Regards,
    Jean-Christophe

    Cleartoby,
    Well, another thought that comes to mind is to define and implement a listener.
    e.g.
    public interface MyListener
        public void setText(String text);
    public class MyFrame extends JFrame implements MyListener
        private JTextArea textArea;
        public void setText(String text)
            this.textArea.setText(text);
    public class MyOtherFrame extends JFrame
        public void addMyListener(MyListener l)
            // somehow keep track of listeners
        // so some stuff and when needed call "setText()" on the listener(s)
    --- pam11

  • How can I backup a game on my MacBook to a flash drive and keep the saved content?

    I have a game that isn't working correctly so I am going to uninstall and reinstall the game, but I want to keep the progress in the game. I don't know how to save the game to a backup storage device and keep all the saved content in the game. I really don't want to start all over again, it takes a long time to get to where I am.

    Hello ashlyn888,
    Based on your post it sounds like you would like to sync your iBooks content with your computer. I have located an article that may help you in this situation. While you can sync this data with your computer you can also use the sharing button to send PDFs using various sources:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How to execute windows application in Jinternal frame

    I want to execute windows application in a JInternal Frame ?

    Attach an EventListener and
    try{ Runtime.getRuntime().exec("C:\\Program Files\\Outlook Express\\ ..."); }
              catch(Exception e){}

  • I'cant load SPRY content into a Frame

    HOw can i load spry content into a frame.. i wrote a code..
    and in the preview version works.. but when i upload to server..
    it's not working.. this my code.. thk
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Copyright (c) 2006. Adobe Systems Incorporated. All
    rights reserved. -->
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Collapsible Panel Group Sample</title>
    <script language="JavaScript" type="text/javascript"
    src="widgets/collapsiblepanel/SpryCollapsiblePanel.js"></script>
    <script language="JavaScript" type="text/javascript">
    function load_content ()
    if (parent.document.getElementById('main_div')) {
    parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame ').innerHTML;
    if (!parent.document.getElementById('main_div')) {
    window.location=('index.html') ;
    </script>
    <link
    href="widgets/collapsiblepanel/SpryCollapsiblePanel.css"
    rel="stylesheet" type="text/css" />
    <link href="css/samples.css" rel="stylesheet"
    type="text/css" />
    <style type="text/css">
    #cp1 .CollapsiblePanelContent {
    overflow: scroll;
    height: 300px;
    .CollapsiblePanel {
    width: 300px;
    .CollapsiblePanelTab {
    font-size: 1em;
    </style>
    </head>
    <body onload="load_content()">
    <h3>Collapsible Panel Group Sample</h3>
    <p>By default the panels in a collapsible panel group
    are open.</p>
    <div id="inner_frame">
    <div id="CollapsiblePanelGroup1"
    class="CollapsiblePanelGroup">
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    23</div>
    <div class="CollapsiblePanelContent">
    <p>Test 1.</p>
    </div>
    </div>
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    2</div>
    <div class="CollapsiblePanelContent">
    <p>test 2</p>
    </div>
    </div>
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    3</div>
    <div class="CollapsiblePanelContent">
    <p>test 3</p>
    </div>
    </div>
    </div>
    </div>
    <script language="JavaScript" type="text/javascript">
    var cpg1 = new
    Spry.Widget.CollapsiblePanelGroup("CollapsiblePanelGroup1", {
    contentIsOpen: false });
    </script>
    </body>
    </html>

    Im not sure if i'm doing it right, but it wont work for me
    var scriptEle= document.createElement("script");
    scriptEle.text = s;
    ele.appendChild(scriptEle);
    is this the exact code witch i have to replace the old one
    with?
    i also added the
    Spry.Data.initRegions(ele);
    on the end of the Spry.Utils.setInnerHTML function
    i havent included the spry related javascripts in the main
    page could tha be a problem?
    actually i've tried to but it did'nt help
    really thanx tha you willing to help

  • How to add scrollbar to the JInternal Frame

    How to add scrollbar to JInternal Frame?
    I have One JInternal frame i want it should have a scrollbar when we reduces its size.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html]How to Use Scroll Panes

  • Error in sharepoint 2010 designer while saving:"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see the results of the save? "

    Hi, 
    I am doing development  in sharepoint 2010 and facing this very weird problem.
    If I create a site page with the sharepoint look and feel for that site and try to save the site page,i am getting this error:**"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see
    the results of the save? "** and when i say reload,the server removes some parts of my page, e.g onclick event of html,asp buttons.
    This error just comes for any sharepoint site page,e.g i took a copy of 'How To Read Library' page just edited the text part of taht page,and when i try to save this error again comes up.
    However,if i create a simple aspx page with only htmltags like head body,then thr is no problem ,everything works great. But sharepoint look and feel pages are giving troubles while saving.
    has anybody seen this earlier,what could be the reason for this?
    Thanks

    I think the excerpt and link below is the why, but the page talks about server code and not javascript.  I guessing that this is why blank pages work, but not wiki pages.  Can anyone verify this?
    The following are general rules for using server-side code on a site page.
    If the page is uncustomized, server-side code is supported on the page.
    If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
    http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx

  • Problem replacing content in text frame

    I am bumping my head against this. Its something I thought I know. I have a labeled text frame when I alert(mySpineTxt.getElements()); it tells me [object TextFrame] that sounds good to me then I use this
    if(mySpineTxt.getElements().length != 0){
        with(mySpineTxt.parentStory.words.itemByRange(0,0)){
                mySpineTxt.contents=(String(myResp))
    and it tells me that mySpineTxt does not support parentStory. I think it should.
    Please add any corrections that I am missing.

    #targetengine "session"
    //Creates a simple event listener.
    main();
    function main(){
        var myEventListener = app.addEventListener("beforePrint", dateChanges, false);
        var myEventListener = app.addEventListener("beforeSave", dateChanges, false);
        //var myEventKill = app.addEventListener("beforeClose", killDate, false);
    function dateChanges(){
         var myDocument = app.activeDocument;
    var myPageItems = myDocument.pageItems.item("myDateLabel");
    if(myPageItems==myPageItems){
    if(myPageItems.getElements().length != 0){
        //alert ("I want to change your date")
        var myDateText=myPageItems
    var myDate=new Date();
        myDate=String(myDate);
        myDate=myDate.slice(0,15);
        myDate=myDate.slice(4,15);
        alert(myDateText);
        with(myDateText.parentStory.words.itemByRange(2,4)){
                        contents=(    ""+myDate)
    }//ending bracket for dateChanges function
    function killDate(){
    app.removeEventListener("beforePrint", dateChanges, false);}
    this is an event listner that changes the date. This works when I use myDateText.parentStory when I plug it in to the other script i am using same stuff. it doesn't work its object is also listed as a page item.

  • There is a problem with Email Campaigns, more specifically saving content.

    I as getting a few error messages, and decided to reboot my machine just in case.
    I actually did not realise that the content I was editing in my campaign had not saved and lost it all.
    After reboot I redid the content, and tried to save it. 5-8 mins later the "Connecting to... " is still displaying and I am pretty sure the content was not saved.
    So I stopped and tried to save again, and exactly 10 minutes later, I got the "Error has occurred" message.
    Previous to that, I was editing and posting blogs with no errors at all.
    The reason I post it here is I am wondering if others experiencing the "Error has occurred" were experiencng the problem in the campaign area as well, and is BC still using that third party for campaigns? Anyway just a though to help tech people resolve this.

    Thanks Maurice, for your reply.
    My Windows Account is already used to log into OneNote. It is the same Windows Account used to log into, and access online, the SharePointOnline, OneNote Online, etc., services. I tried, indeed, to sign out from my account within the client-version of OneNote
    but it returns the message "We can't remove Windows accounts".
    Again, this is the only account that has been used with this installation of OneNote, and it is that which has been uploaded by way of DirSync to Azure. It works for online versions of OneNote items, SharePoint and Visio, and for VisioOnline-based files
    that are opened within the local client-version of Visio. When trying to open the OneNote Online notebook within the local client-version of OneNote we get this issue.
    I have reinstalled Office with no success.
    Any help that you can provide in this regard would be greatly appreciated.
    Regards,
    Brian

  • Saving a page with frames in it

    I made a site that has frames to try and make it look better
    but is there any way to save all of it as one page so i can upload
    the page to a server online.

    How do frames make a page look better?
    Frames use separate pages, one for each frame and one for the
    frameset. They
    cannot be saved as a single page. You would just upload each
    individual
    page to the server, though. Why is that a problem?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Monker88" <[email protected]> wrote in
    message
    news:e25k6l$rmt$[email protected]..
    >I made a site that has frames to try and make it look
    better but is there
    >any way to save all of it as one page so i can upload the
    page to a server
    >online.

  • How Do I Rotate Content, Not the Frame

    I am in InDesign CS1.
    I need to figure out how to affect the content of a placed image, not the surrounding frame. I know how to set the rotation angle of the selected object's frame:
    set rotation angle of selection to 10
    But for the life of me, I cannot understand how to leave the frame as it is and just rotate the content. I.E., normally, if I grab the direct selection tool and click an image (hovering over the image inside the frame turns to the hand tool), I can then manipulate the content without affecting the outside frame. But I want to do this with an AppleScript.
    I also assume that if someone can open this door for me, it will then lead the way to being able to scale the content, without affecting the frame. But I cannot figure out the secret of "content" vs. "selection". Halp!
    Thank you!

    Your definitions are what I would expect, but for me, applying each version as one of these two separate scripts:
    1)
    tell application "InDesign CS"
    activate
    set rotation angle of selection to 10
    end tell
    2)
    tell application "InDesign CS"
    activate
    set absolute rotation angle of selection to 10
    end tell
    Gives me the same result. The frame rotates and the content rotates with it.
    Let me start over with my problem as that may help...
    So let's say I have a frame and it has rotation 0˚. Inside the frame I have an object rotated to 5˚.
    Applying either of those two scripts has the same result. The frame rotates to 10˚ and the content (when selected with the direct selection tool) now shows a rotation of 15˚.
    But what I want is for the frame to stay at 0˚ and the content (when selected with the direct selection tool) to show a rotation of 15˚.
    I am thinking this may be relates to the "Transform Content" and "Transformations Are Totals" preference settings. Both of which I have turned on. I know how to turn them on and off with an AppleScript, but it doesn't seem to be helping.

  • Since the weekend my Firefox 10.0.2 does not load the content of the frames when I connet to Facebook

    I can log in and out of Facebook. The heading at the top of the home page loads, and so does the thin blue frame in which the content should be displayed. The page however stays blank. The same happens if I connect to a friend's profile. I also cannot search of display my profile wall of whatever.
    My very old version of Microsoft Internet Explorer works perfectly, although it displays a warning about being outdated.
    Google's Crome browser have the same problem as Firefox i.e. a blank screen.
    I tried deleting cookies and cach. I tried reïnstalling Firefox. I even removed it completely, with al personal settings and stuff (and thus lost tweaks which I have been using for years) I the reïnstalled it... to no avail. I have tried using an old version (9.0.1) but it also just displays a blank screen.
    If I DISable Javascript in Firefox my Facebook homepage loads, but the none of the buttons (eg "see more" , "display al nn comment" work. "See more" does not do anything and "disply all nn comments" displays a blank page.

    I have found a solution to the problem on a Google Chrome forum where people were discussing the same problem in that browser. If you connect to
    https://www.facebook.com (NOTE THE "S" which indicates a secure connection) Facebook wil display correctly.
    The only problem is that you have to keep pasting the "https" in front of every link you follow. To make it permanent do the following. I paste from the site
    (http://www.google.com/support/forum/p/Chrome/thread?tid=1ce2eceab414b310&hl=en)
    SammieKay08
    Level 1
    8/20/11
    Problem solved:
    1. Login to your Facebook account in your browser.
    2. Click on the Account on your top-right and select Account Settings from the drop down list.
    3. Click on the Change link in front of the Account Security.
    4. Put a checkmark in the checkbox labeled Browser Facebook on a secure connection (https).
    5. Click on the blue Save button to save the settings.
    Voila! Permanent https (secure browsing) on facebook and no more having to type in the "s" every time. :)
    8 of 14 people found this answer helpful. Did you?

  • Copying content from one frame to another frame

    Hi All,
    In my application, i want popup frame to enter the values when clicking the mouse(Double Click). I open the new frame by using the following code
    JFrame frame = new NewJFrame("PopUp Frame");
    frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
    JLabel label = new JLabel("PopUp Frame");
    //Create and set up the content pane.
    frame.getContentPane().add(label);
    frame.setResizable(false);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    In this new frame if i entered the value in the textbox how can i take it in the main screen where the mouseclicked to open this new frame?
    Please if anyone know give the solution.

    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    To get better help sooner, post a [_SSCCE_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    i want popup frameIt's better to use a modal JDialog. A GUI application should normally have only one JFrame.
    In this new frame if i entered the value in the textboxWhat's a textbox?
    db
    edit It's not polite to post a new question without replying to a response on an earlier one.
    [http://forums.sun.com/thread.jspa?threadID=5395152]
    Edited by: DarrylBurke

  • How do I rotate content, not the frame (Javascript)

    Hi guys, I'm using InDesign CC 2014.
    I need to figure out how to affect the content of a placed image, not the surrounding frame. I know how to set the rotation angle of the selected object's frame:
    myRectagle = minhaPagina.rectangles.add(meuDocumento.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:meuDocumento.swatches.item("RED")});
    myRectagle.rotationAngle = 45
    For a frame, works fine, but I cannot understand how to leave the frame as it is and just rotate the content. I.E., normally, if I grab the direct selection tool and click an image (hovering over the image inside the frame turns to the hand tool), I can then manipulate the content without affecting the outside frame. But I want to do this with an JavaScript.
    Regards!

    Hello guys,
    Turned out I even managed to solve the problem bit by now, for those who go through the same, following the solution:
    Instead of:
    myRectagle.rotationAngle = 45
    used:
    myRectagle.graphics[0].rotationAngle = 45
    Regards to all.

Maybe you are looking for

  • Cannot see zoom effect

    After setting up a zoom on a still image it looks fine when using "play output"  in the pan/zoom tool preview window but when I return to the timeline view and play that clip it doesn't display properly. Instead it shows the initial frame with someth

  • I was trying to open finder with the pinwheel spinning when I accidently hit the off button. When restarting a small image of the finder icon blinked on

    I was trying to open finder while the pinwheel was spinning & I accidentally hit the off button.  When I tried to restart I get a gray screen & after about a minute in the middle of the screen appears a half inch by half inch image of the finder icon

  • Open Subcontracting PO Upload

    Hi All, I want to upload all open subcon PO's. Any one can suggest how to upload the open subcon po's in the system. which function module is exist in the system to uplaod. Thanks Nagaraj K

  • Setting a "private"-Flag for tasks/todos

    i am using a blackberry curve 9300 with OS 6, BES with lotus notes 8.5: there is no possibility to set a private-fla g in blackberrys todo-applic ation. do you know an other third party application to create private tasks on blackberry or is there an

  • Collective Order good moviement 101 - 261 ( sub - order )

    Dear gurus, i inserted in the HALB component the special procurement (52) and the Type procurement = E I created a production order for the Material Fert and the system create a collective order . Order 0001 for the FERT material and the order 0002 f