How to open a frame in maximize by default

I have made an application, now I want to open the first frame in the maximize mode(windows). Please help me.
Thanks

In JDK1.3, you could try using a Robot:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class UFrame
     public static void maximize(Frame frame)
          Point frameLocation = frame.getLocationOnScreen();
          Dimension frameSize = frame.getSize();
          int maximizeX = frameLocation.x + frameSize.width - 30;
          int maximizeY = frameLocation.y + 10;
          try
               Robot robot = new Robot();
               robot.mouseMove(maximizeX, maximizeY);
               robot.mousePress(InputEvent.BUTTON1_MASK);
               robot.mouseRelease(InputEvent.BUTTON1_MASK);
          catch(AWTException e) {}
     public static void main(String[] args)
          throws Exception
          JFrame frame = new JFrame( "Text Maximize" );
          frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          frame.setBounds( 25, 25, 300, 200);
          frame.setVisible( true );
          UFrame.maximize( frame );
}

Similar Messages

  • [NEWBIE] How to open a frame from an Applet?

    Hi, I'm trying to open a JFrame from an Applet. Basically, I would like that, once the user selects an option from a JMenu, a Frame would be shown with a text box where user could type some content.
    I built both the Applet and the Frame, and singularly they work. When I execute the main method from the JFrame, the window appears, but when I execute something like the following from the applet:
    MyFrame mf = new MyFrame();
    mf.setVisible(true);nothing is shown. I'm sure that I don't know something, but I just started with applets.
    Thanks for any help,
    Marco

    If MyFrame is a subclass of JFrame, then it should not
    make any difference.
    What do you need the JFrame for? Can this be done
    using another "screen" by using a CardLayout?From a menu, when the user selects 'Start game' I need a text box coming out so that the user can insert a word. This word should then evaluate an instance member of the Applet.
    Marco

  • Help! How to Open a Frame from applet with

    Hey all. I need help =).
    I want:
    1. Have 1 class extends applet with running thread (this far no prob)
    2. Open a new frame from the applet (no prob)
    3. Start a new thread which is operating "inside" the new Frame/class
    4. Draw a simple Rect in the new Frame with the new thread to test that the graphics work.
    Plz help,
    ~Trobsky

    �rr..... i cant draw on the Frame =(.
    Heres the code:

    public class Fonster extends java.applet.Applet {
         Frame myFrame;
         Fri friFonster=new Fri();
         public void init() {
              myFrame=new Frame();
              myFrame.resize(300,300);
              myFrame.show();
              myFrame.add(friFonster);
              friFonster.init();
              friFonster.start();
         public void paint(Graphics g)
              g.drawRect(10,10,100,100);
    public class Fri extends java.applet.Applet {
         public void init(){
              repaint();
         public void paint(Graphics g)
              g.drawRect(10,10,200,200);

  • How to open the dashboard in PDF, by default is is open in HTML.

    HI ,
    When you run any report in dashboard , it's open in HTML , how do we open that whole dashboard in pdf format.
    Any solutions on it.
    Thanks,
    Malli.

    HI,
    My dash board is integrated with sebel. they have configured one button . when they click on that button our dashboard should open in pdf by default, not in html.
    Any help on this.
    Thanks,
    Malli

  • How do I open a frame in a new window or tab?

    I want to be able to open frames into their own tabs or window... So how do you do this, or is Firefox NOT CAPABLE of this... i.e. it's LAME and should be shot? (=:]
    How do I open a frame in a new window or tab?
    ========================
    Basically... I right click, and a context menu pops up... and there is no option for what I want to do... basically because the frame is so small, and the frame table for this particular site is set to fixed... so you can't resize them... so it's almost impossible to read. If only I could easily click and open in a new window or tab...
    I mean... yeah, I can VIEW SOURCE by hand, manually, and find grope the freaking HTML until I find the desired frame URL... but Uhh... likee that's really inefficient, and a waste of time and frankly gives me a headache...
    There's got to be an easy way to do this... either with a setting, which I fail to know about, or by a plugin or extension... or by tweaking the source code... but I'm not a programmer, so I'm handicapped there.

    If you right-click and don't see a context menu item that says '''This Frame''', that page isn't made with Frames; I-frames aren't "Frames". Unless you have an extension installed that is messing up your context menus ....
    http://support.mozilla.com/en-US/kb/Safe+Mode

  • How to open a log file form a frame in linux

    Hy,
    Can anyone knows how to open a pdf file in linux from java?? and also a conf file(when I try Runtime.getRuntime().exec("path") -gives me an error like -I don't have the right to open that file , how can I open that file as root??)
    Thanks in advance

    Are you familiar with java.awt.Desktop?
    http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
    Try its open() method.

  • How to open animated .GIF files in Photoshop CS3 and newer

    Q: Since ImageReady is long gone from Photoshop, how can I open animated GIF files in Photoshop CS3 and newer?
    A: File -> import-> video to layers.
    In the dialogue box type "*.*" to show all file types.
    Select your GIF file and which frames to import.
    They will now be available in your animation palette.

    Zeno
    curt y, sorry for the late reply, I tried that but I doesn't work. I have to choose at least two files in the Load Layers window in order for the OK button to be available and then some action script uses the different files to make layers and merges them but not from the frames of the gif file. I can undo through the script to see what it did but it never accessed the frames of the gif file, just the first frame. Choosing "make frames from layers" in the animation palette only puts the original files into layers - that is only the first frame of the gif file.
    I guess I'm out of luck with the 64  bit version of Photoshop as Zeno suggested :-(
    What program would you people suggest for opening each frame from gif files?

  • How to use single frame in a page

    Hello, i would like to now how to make a frame in a page
    without having two or more, i was used to work with GoLive and
    there i could use the grid an put a single frame and make links to
    other pages that would open in that frame, it worked wel for me,
    but since I switched from golive to dreamweaver CS3 i am not able
    to do so. Is there some one how could tel me how to do so, since i
    use a lot of single frames in my pages,
    greetings

    why are you wanting to use single frames?
    They allow having the initial frame address stay in the
    address bar, and not
    show the linked page's address. The problems they cause
    usually override any
    value.
    Or- if we aren't using the same words the same way, please
    give an example
    site of what you want to do.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to open a "wav" file in Logic 7.2.1 and then remaster?

    A fellow musician wants to see if I can improve audio tracks his band recorded in Cubase SX. He has a CD with the WAV files of each of 12 audio tracks. First question - Could someone tell me how to open his files and then import them into Logic Pro so that his tracks 1-12 correspond to my audio tracks 1-12 and be in sync?
    Second question - assuming I can get his tracks going what are the key ways to boost volume or "master" his tracks so that the end result, a stereo mix, is loud vibrant and "radio ready"?
    I'm familiar with the mastering plug ins on the output channels of Logic. I've used "Soft Maximizer" but it seems to be compression related. Are these "rooms", available on the output channels, the only way to increase volume and aliveness?
    He's doing this because the studio he's at can't seem to make a mix that he's happy with. He says the mixes lack volume and vibrancy. Thanks in advance.

    Use the Audio Editor window to import the tracks. Then drag them one at a time onto Audio tracks in the Arrange window so they all align to Bar 1 1 1 1.
    The fun will start if they were not recorded simultaneously as you will need to align them manually to be in sync. Good luck with that it takes time but is not impossible. Use the moveable start point in the Audio Editor to adjust the start of each wav file until they are aligned.
    To improve the levels, probably the quickest way is to Normalize each track first in the Audio Editor window before you start mixing and EQ'ing them in Arrange.
    Rik

  • How to open a web page in JFrame.

    Please let me know how to open a web page in the Java Frame.

    HTML code can be viewed in any Swing component you want.

  • Error while Accessing Smart Card using Open Card Frame Work

    HI
    Using Open Card Frame work I am trying to access GemAlto provided Smart Card (java card). I downloaded the Open Card Frame work from “http://www.openscdp.org/ocf/download.html”.
    I am executing a basic program to access the data stored in smart card.
    public static void main(String[] args)
                        System.out.println("reading smartcard file...");
                        try {
                        SmartCard.start();
                        CardRequest cr = (FileAccessCardService.class);
                        System.out.println("calling waitforCard");
                        SmartCard sc = SmartCard.waitForCard(cr); //Error comes after this line
                        System.out.println("After waitForCard called");
                        FileAccessCardService facs = (FileAccessCardService)
                        sc.getCardService(FileAccessCardService.class, true);
                        CardFile root = new CardFile(facs);
                        CardFile file = new CardFile(root, ":c009");
                        byte[] data = facs.read(file.getPath(), 0,
                        file.getLength() );
                        sc.close();
                        String entry = new String(data);
                        entry = entry.trim();
                        System.out.println(entry);
                        } catch (Exception e) {
                             e.printStackTrace(System.err);
                        System.exit(0);
    The content of the opencard.properties are :
              OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    OpenCard.trace = opencard:5 com.ibm:4 opencard.opt.database:6
    After the line “ SmartCard sc = SmartCard.waitForCard(cr);”
    the program is expecting a card to be inserted but while inserting Smartcard the following error message come :
              calling waitforCard
              [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
    --- message
    --- thread Thread[Thread-0,5,main]
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@2e7263
    [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
    --- message Protocol = 0
    --- thread Thread[Thread-0,5,main
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@2e7263
    Basically the error is coming from the SCardConnect function of OCFPCSC1.cpp file.
    Please reply to my mail id if any body has any idea how to resolve this issue.
    MAIL-ID : [email protected]
    With Regards
    Swarup
    Finacle Archie
    Infosys Technologies Limited,Bhubaneswar,India

    Sounds like an issue that has to do with JavaScript Origin policy. You'll have to use Domain Relaxing for this. Read all about it here:
    http://help.sap.com/saphelp_nw04/helpdata/en/59/87b54064c2742ae10000000a155106/frameset.htm
    here:
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/473d4124b08739e10000000a1550b0/frameset.htm
    and here:
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/f8751d8c6b254dac189f4029c76112/frameset.htm

  • How to open a new window from the login window?

    hi,
    can someone tell me how to open a new window from an existing window, here by window i mean frame. The case is i hv two java files - oracle.java and FDoptions.java. The first frame is in the Login.java. The oracle.java file has a button "Login", when it is clicked, i want to open the next frame which is in the file FDoptions.java. Can some one help me with this? I m giving the code below -
    oracle.java
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    * The application's main frame.
    public class oracle {
        private JFrame frame;
        private JPanel logInPanel;
        private JButton clearButton;
        private JButton logInButton;
        private JButton newuserButton;
        private JButton forgotpasswordButton;
        private JTextField userNameTextField;
        private JPasswordField passwordTextField;
        public oracle() {
            initComponents();
        private final void initComponents() {
            JLabel userNameLabel = new JLabel("User name: ");
            JLabel passwordLabel = new JLabel("Password: ");
            userNameTextField = new JTextField();
            passwordTextField = new JPasswordField();
            JPanel userInputPanel = new JPanel(new GridLayout(2, 2, 5, 5));
            userInputPanel.setBorder(BorderFactory.createEmptyBorder(10, 20, 10, 20));
            userInputPanel.add(userNameLabel);
            userInputPanel.add(userNameTextField);
            userInputPanel.add(passwordLabel);
            userInputPanel.add(passwordTextField);
            logInButton = new JButton(new LogInAction());
            clearButton = new JButton(new ClearAction());
            newuserButton = new JButton(new NewUserAction());
            forgotpasswordButton = new JButton(new ForgotPassword());
            JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
            JPanel buttonPanel1 = new JPanel(new FlowLayout(FlowLayout.RIGHT));
            buttonPanel.add(logInButton);
            buttonPanel.add(clearButton);
            buttonPanel1.add(newuserButton);
            buttonPanel1.add(forgotpasswordButton);
            logInPanel = new JPanel(new BorderLayout());
            logInPanel.add(userInputPanel, BorderLayout.NORTH);
            logInPanel.add(buttonPanel, BorderLayout.CENTER);
            logInPanel.add(buttonPanel1,BorderLayout.SOUTH);
            frame = new JFrame("FD Tracker");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(500, 500);
            frame.setContentPane(logInPanel);
            frame.pack();
            frame.setVisible(true);
        private void performLogIn() {
            // Log in the user
            System.out.println("Username: " + userNameTextField.getText());
            char[] password = passwordTextField.getPassword();
            System.out.print("Password: ");
            for(char c : password) {
                System.out.print(c);
            System.out.println();
        private void performClear() {
            // Clear the panel
            System.out.println("Clearing the panel");
            userNameTextField.setText("");
            passwordTextField.setText("");
        private final class LogInAction extends AbstractAction {
            public LogInAction() {
                super("Log in");
            @Override
            public void actionPerformed(ActionEvent e) {
                performLogIn();
        private final class ClearAction extends AbstractAction {
            public ClearAction() {
                super("Clear");
            @Override
            public void actionPerformed(ActionEvent e) {
                performClear();
        private final class NewUserAction extends AbstractAction{
             public NewUserAction(){
                 super("New User");
             @Override
             public void actionPerformed(ActionEvent e){
                 JFrame newuser = new JFrame("NewUser");
        private final class ForgotPassword extends AbstractAction{
            public ForgotPassword(){
                super("Forgot Password");
            @Override
            public void actionPerformed(ActionEvent e){
                JFrame forgotpassword = new JFrame("Forgot Password");
        public static void main(String args[]) {
            new oracle();
         FDoptions.java
    import java.awt.FlowLayout;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.BorderFactory;
    import javax.swing.JPanel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class Fdoptions{
        private JFrame fdoptions;
        private JPanel fdoptpanel;
        private JButton enterfdbutton;
        private JButton viewfdbutton;
        public Fdoptions() {
            initComponents();
        private final void initComponents(){
            fdoptpanel = new JPanel(new BorderLayout());
            fdoptpanel.setBorder(BorderFactory.createEmptyBorder(80,50,80,50));
            enterfdbutton = new JButton(new EnterFDAction());
            viewfdbutton = new JButton(new ViewFDAction());
           JPanel enterbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
           JPanel viewbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
            enterbuttonpanel.add(enterfdbutton);
            viewbuttonpanel.add(viewfdbutton);
            fdoptpanel.add(enterbuttonpanel,BorderLayout.NORTH);
            fdoptpanel.add(viewbuttonpanel,BorderLayout.SOUTH);
            fdoptions = new JFrame("FD Options");
            fdoptions.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            fdoptions.setSize(1000,1000);
            fdoptions.setContentPane(fdoptpanel);
            fdoptions.pack();
            fdoptions.setVisible(true);
        private void performEnter(){
        private void performView(){
        private final class EnterFDAction extends AbstractAction{
            public EnterFDAction(){
                super("Enter new FD");
            public void actionPerformed(ActionEvent e){
                performEnter();
        private final class ViewFDAction extends AbstractAction{
            public ViewFDAction(){
                super("View an existing FD");
            public void actionPerformed(ActionEvent e){
                performView();
        public static void main(String args[]){
            new Fdoptions();
    }

    nice day,
    these lines..., despite the fact that this example is about something else, shows you two ways
    1/ modal JDialog
    2/ two JFrame
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * Parent Modal Dialog. When in modal mode, this dialog
    * will block inputs to the "parent Window" but will
    * allow events to other components
    * @see javax.swing.JDialog
    public class PMDialog extends JDialog {
        private static final long serialVersionUID = 1L;
        protected boolean modal = false;
        private WindowAdapter parentWindowListener;
        private Window owner;
        private JFrame blockedFrame = new JFrame("No blocked frame");
        private JFrame noBlockedFrame = new JFrame("Blocked Frame");
        public PMDialog() {
            noBlockedFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            noBlockedFrame.getContentPane().add(new JButton(new AbstractAction("Test button") {
                private static final long serialVersionUID = 1L;
                @Override
                public void actionPerformed(ActionEvent evt) {
                    System.out.println("Non blocked button pushed");
                    blockedFrame.setVisible(true);
                    noBlockedFrame.setVisible(false);
            noBlockedFrame.setSize(200, 200);
            noBlockedFrame.setVisible(true);
            blockedFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
            blockedFrame.getContentPane().add(new JButton(new AbstractAction("Test Button") {
                private static final long serialVersionUID = 1L;
                @Override
                public void actionPerformed(ActionEvent evt) {
                    final PMDialog pmd = new PMDialog(blockedFrame, "Partial Modal Dialog", true);
                    pmd.setSize(200, 100);
                    pmd.setLocationRelativeTo(blockedFrame);
                    pmd.getContentPane().add(new JButton(new AbstractAction("Test button") {
                        private static final long serialVersionUID = 1L;
                        @Override
                        public void actionPerformed(ActionEvent evt) {
                            System.out.println("Blocked button pushed");
                            pmd.setVisible(false);
                            blockedFrame.setVisible(false);
                            noBlockedFrame.setVisible(true);
                    pmd.setVisible(true);
                    System.out.println("Returned from Dialog");
            blockedFrame.setSize(200, 200);
            blockedFrame.setLocation(300, 0);
            blockedFrame.setVisible(false);
        public PMDialog(Dialog parent, String title, boolean isModal) {
            super(parent, title, false);
            initDialog(parent, title, isModal);
        public PMDialog(Frame parent, String title, boolean isModal) {
            super(parent, title, false);
            initDialog(parent, title, isModal);
        private void initDialog(Window parent, String title, boolean isModal) {
            owner = parent;
            modal = isModal;
            parentWindowListener = new WindowAdapter() {
                @Override
                public void windowActivated(WindowEvent e) {
                    if (isVisible()) {
                        System.out.println("Dialog.getFocusBack()");
                        getFocusBack();
        private void getFocusBack() {
            Toolkit.getDefaultToolkit().beep();
            super.setVisible(false);
            super.pack();
            super.setLocationRelativeTo(owner);
            super.setVisible(true);
            //super.toFront();
        @Override
        public void dispose() {
            owner.setEnabled(true);
            owner.setFocusableWindowState(true);
            super.dispose();
        @Override
        @SuppressWarnings("deprecation")
        public void hide() {
            owner.setEnabled(true);
            owner.setFocusableWindowState(true);
            super.hide();
        @Override
        public void setVisible(boolean visible) {
            boolean blockParent = (visible && modal);
            owner.setEnabled(!blockParent);
            owner.setFocusableWindowState(!blockParent);
            super.setVisible(visible);
            if (blockParent) {
                System.out.println("Adding listener to parent ...");
                owner.addWindowListener(parentWindowListener);
                try {
                    if (SwingUtilities.isEventDispatchThread()) {
                        System.out.println("EventDispatchThread");
                        EventQueue theQueue = getToolkit().getSystemEventQueue();
                        while (isVisible()) {
                            AWTEvent event = theQueue.getNextEvent();
                            Object src = event.getSource();
                            if (event instanceof ActiveEvent) {
                                ((ActiveEvent) event).dispatch();
                            } else if (src instanceof Component) {
                                ((Component) src).dispatchEvent(event);
                    } else {
                        System.out.println("OUTSIDE EventDispatchThread");
                        synchronized (getTreeLock()) {
                            while (isVisible()) {
                                try {
                                    getTreeLock().wait();
                                } catch (InterruptedException e) {
                                    break;
                } catch (Exception ex) {
                    ex.printStackTrace();
                    System.out.println("Error from EDT ... : " + ex);
            } else {
                System.out.println("Removing listener from parent ...");
                owner.removeWindowListener(parentWindowListener);
                owner.setEnabled(true);
                owner.setFocusableWindowState(true);
        @Override
        public void setModal(boolean modal) {
            this.modal = modal;
        public static void main(String args[]) {
            new PMDialog();
    }

  • Problem with opening new frame in netbeans

    Hi...
    I have created a jframe in netbeans when i try to open this frame now i got a warning form loaded with errors errors occurred in loading the form data.....
    How to solve this problem?

    How to solve this problem?Learn Java.
    [http://catb.org/~esr/faqs/smart-questions.html]
    db

  • Opening a frame from a button

    Can some one help me figure out how to get a frame to open ferom a button with input. here is the source code where it would be used.
    // Programmer:     AISC AM Programming class
    // Jan. 22, 2004
    // DiseaseSim2 driver to test out People class
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DiseaseSim2 extends JApplet implements ActionListener
    int i,r,numPeople=100,diameter=10;
    int mx,my;
    int lenghtOfIllness = 15;
    boolean sick;
    Person[] people = new Person[numPeople];
    Rng randn = new Rng();
    Locator datastore = new Locator();
    JButton pressButton = new JButton("Move Folks Around");
    public void init()
    Container con = getContentPane();
    con.setLayout (new FlowLayout());
    con.add(pressButton);
    pressButton.addActionListener(this);
    //CREATE PEOPLE OBJECTS AS AN ARRAY
         for(int i=0;i<numPeople;i++)
    people[i] = new Person(randn.getR(100,400),randn.getR(100,400));
    //SLOW DOWN PROCESS FOR RANDOM NUMBER SEED distinction
    pause(13);
    //MAKE ONE PERSON SICK INITIALLY
    r=randn.getR(1,numPeople);
    people[r].setSick(true);
    public void actionPerformed(ActionEvent e)
    Object source = e.getSource();
    if(source == pressButton)
    repaint();
    public void paint(Graphics gr)
    setBackground(Color.blue);
    pressButton.repaint();
         //ERASE PREVIOUS POSITIONS
    for(i=0;i<numPeople;i++)
    gr.clearRect(people.getx(),people[i].gety(),diameter,diameter);
    //Locator CALL
    datastore.setNumPeople(numPeople);
         datastore.contaminate(people);
    //MOVE PEOPLE
    for(i=0;i<numPeople;i++)
    mx = randn.getR(-100,100);
    my = randn.getR(-100,100);
              people[i].move(mx,my);
              //Make red or green
         sick = people[i].getSick();
         if(sick)
              gr.setColor(Color.red);
    //INCREMENT DAYS SICK
    people[i].countDaySick();
         else
              gr.setColor(Color.green);
         gr.fillOval(people[i].getx(),people[i].gety(),diameter,diameter);
              //MAKE PEOPLE WELL (NOT SICK)
              if(sick && people[i].getDaySick() > lenghtOfIllness)
              people[i].setSick(false);
    people[i].setDaySick(0);
    //REQUIRED METHOD FOR PAUSE
    void pause(int time)
    try{ Thread.sleep(time);}
    catch(InterruptedException e) { }

    &#91;code&#93;public void actionPerformed(ActionEvent e)
        Object source = e.getSource();
        if(source == pressButton)
            JFrame jf = new JFrame("My New Frame!!!");
            jf.setBounds(200,200,200,200);
            jf.setVisible(true);
    }&#91;/code&#93;
    Isn't code easier to read with &#91;code&#93;&#91;/code&#93; blocks around it?

  • How to open illustrator file (.ai) using Indesign and save it as XML

    I know how to open a Illustrator file (.ai) in Indesign.
    It would be like :
    1 ) Save your Illustrator file as AI. This Native format is most compatible with InDesign.
    2 )  Go to -> InDesign, click on your document using your  Frame Rectangle tool (the one with the X through it).
    3 )  Fill in the desired size (can be adjusted later).
    5 ) Go to File menu > Place.
    6 )  Find and select the Illustrator file in the window that opens.
    7 ) Click the Open button.
    Adjust size, & position of your image using the Direct Selection tool (white arrow), and the cropping with the Seclection tool (black arrow.
    Now I want to save this file as XML.
    After that,  I say
    1 )  File -> Export
    But this file saves as XML only shows he the root element nothing else.
    Every time , this shows like
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root></Root>
    Nothing is there as contents.
    Can anyone let me know, is it possible to store .AI file as XML.
    My requirement is simple, i want to store the .ai file as XML.
    Some how I am using Indesign to do so . Can any body help.
    Thanks,

    Copy and paste is again seems same as 'Place the file'  , it wouldn't help again.
    Copy( from Illustrator) and paste( it in Indesign) and  later saving\exporting as XML again create the same the XML file with no data . Just a XML structure,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <Root />
    RRegarding using the FXG and SVG file .. saving these formats to XML does not shows the Co-ordinates in XML formats.
    I do I would like to have the coordinates (x,y) so that later on , if required I can change the coordinates and display the Image or Text in the file. As this is a requirement for business card.
    A

Maybe you are looking for

  • Hello. When I connect my iPad, to my PC, there are 3gb taken up by "other". How can I free this up? Thanks.

    Hello. When I connect my iPad, to my PC, there are 3gb taken up by "other". How can I free this up? Thanks.

  • Using a Macbook in America

    Bit of a DUMB question I know. Will I be able to charge my Macbook in America using the standard mains charger I go with it. I have got an adaptor that is designed for USA & Canada. Thanks to all who answer

  • Creating activity without referencing Account and Contact Person.

    Hello Experts, Our client has such a process, sales employee can perform unplanned visits and they record this visit just entering this prospectsu2019 telephone number and name surname.(without entering account ID as the customer data hasnu2019t been

  • Why does it freeze at 5th time??

    Hi,I never used JDesktopPanes and JInternalFrame so maybe I'm missing something important... I got the following code: private synchronized void refresh(){         myDesktopPane.removeAll();         MyData[] data=dataStructure.getData();           fo

  • Global HRMS Patch

    Dear friends I want to install global HRMS patch but having some difficulties. I am running ebs R 12.1.1 Linux Version. Initially I managed to perform following steps 1. connect as sysdba ans start database 2. Set application environment: Moved to VI