Maximizing internalframe

Hi, All
I want to maximize my internalframe to view as the full screen..
for this i have use the code.
/*****code started**********/
public class FullScreen extends JWindow
public FullScreen(JInternalFrame frame)
          java.awt.Container cont = getContentPane();
          Toolkit toolkit ;
          toolkit = java . awt . Toolkit . getDefaultToolkit ();
          Dimension screenSize = toolkit . getScreenSize ();
          frame.setResizable(false);
          frame.setIconifiable(false);
          frame.setMaximizable(false);
          frame.setClosable(false);
          cont.add(frame);
          setSize(screenSize);
          show();
/*************************code end here*******************/
now while involking this constructor from the main GUI it will display in full screen but it lost focus immedietely as the first click take place ..............
this internal frame has already a moude listener MouseMotionListener...
thanks
Ravi

what do you mean by "lost focus"?
do you mean it disappeared?

Similar Messages

  • I am having problem adding internalFrame to a frame

    Hi,
    I am not able to see the internalframe in a frame but my main frame is showing up properly. I have added the internalframe to the desktop.
    can somebody help me out.
    code for the internalframe.
    public void createInternalFrame() { 
    // Use a suitable internal frame constructor.
    JInternalFrame iFrame = new JInternalFrame(
    "Calendar",
    true, // can be resized
    true, // can be closed
    true, // can be maximized
    false); // can be iconified
    // iFrame.setLocation(70, 80);
    iFrame.setSize(300, 200);
    iFrame.setVisible(true);
    desktop.add(iFrame);
    container.add(desktop); //container is the contentpane.
    iFrame.moveToFront();
    // desktop.setOpaque(true);
    iFrame.show();
    // iFrame.validate();
    System.out.println("button 2");
    try { 
    iFrame.setSelected(true);
    } catch (java.beans.PropertyVetoException ex) { 
    System.out.println(
    "Exception while selecting an internal frame");
    }

    The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html]How to Use Internal Frames has working examples.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Adobe 9 always opens in a Maximized window

    Hi
    When opening a link in Internet Explorer 6 that opens a pdf, the pdf file opens in a maximized window.  When clicking on a pdf file on the computer it will always open in a maximized window.
    I have gone into the properties for Adobe and made sure that it is run in a Normal Window.
    I have gone into edit > preferences and have not found any options where you can select whether to open in maximized window.
    Is there a way to specifiy whether to open the files in a maximized window or, as in this case, to open the window in normal/restore down view.
    Thank you
    Charlotte

    Charlotte,
    I'm having the same problem using IE 8.
    Did you ever get a resolution for this?  I see no one ever responded to your post.
    Thanks!
    Bill

  • Quando vou Entrar no iCloud diz que a quantidade maxima de contas gratuitas foi ativada no mesmo...sim? e eu com isso?como entro?com posso me conectar ao o Icloud agora?

    Quando vou Entrar no iCloud diz que a quantidade maxima de contas gratuitas foi ativada no mesmo...sim? e eu com isso?como entro?com posso me conectar ao o Icloud agora?

    Bom dia, Sr. Valdir.
    Não sei se o senhor já conseguiu resolver seu problema já que a mensagem é bem antiga. De qualquer forma, queria dar uma dica.
    Esse fórum é feito para usuários e pelos usuários. A Apple não dá assistência oficial através dele. Dessa forma, não é muito seguro que o senhor informe dados pessoais como telefone, número de RG, número de nota fiscal, etc.
    Aconselho que o senhor edite essa mensagem e retire esses dados.
    Sobre o seu problema, aconselho que entre em contato com o Decon ou Procon de sua cidade e peça alguma orientação, ou o senhor poderia entrar em contato com a Pró-teste, que é a associação de defesa do consumidor do Brasil.
    De qualquer forma, se precisar de ajuda, estou à disposição.
    Um abraço.
    João Paulo

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • Firefox 29.0 opens new windows from clicking links that are in a smaller window, should open as maximized window. How to change?

    How do I click a link on a web page, and not have to maximize the window every time? Firefox 29 seemed to add this additional click annoyance and I can't see how to change that. I do not want full screen mode which is what Firefox calls it when it removes an additional row of menu items. I mean maximizing the window so I don't have to do it each time! Please tell me how to change the settings and restore this normal feature.

    Go to
    About:Config
    Change
    browser.link.open_newwindow
    value from 2 to 1
    Works for me now. Every new window is max size

  • Open web page from URL iview in maximized window

    Hi,
    I would like to open a web page in a <b>maximized</b> browser window, using an URL iView.
    I know how to open a window in a separate window, I just can't get it maximized.
    N.B. I do <b>NOT</b> want to open in <b>fullscreen</b> mode, i.e. I want a title bar and menus.
    Does anyone know how to do it?
    I tried to play around with the "window function" property of the iView, but no luck so far. I can't specify a fixed width and height of the target window at design time, as these values may vary at runtime.
    regards
    Lothar

    Hi Lothar,
    Yes, That will require Java Coding, Its true. Basically what the problem here is that to maximize we are trying to fetch the Screen resolution dynamically through Portal that Portal is not allowing us. Thats why I feel that we should go for Java Programing, Create a Par, Deploy it in the server and then create iView for that.
    For Creating the Abstract Portal Component for Opening a Maximized Window You should do following steps.
    1. Open Your NWDS
    2. Create a project ie Portal Application
    3. Create Portal Object ie Abstract Portal Component.
    Now here is the piece of code that may help you
              response.write("<SCRIPT language=javascript>");
              response.write("function onOpenWindow()");
              response.write("{");
              response.write("window.open('http://abc.com','windowName','width=screen.availWidth,height=screen.availHeight,resizable=yes')");
              response.write("}");
              response.write("</SCRIPT>");
              response.write("<a href = \"javascript:onOpenWindow()\">abc.com</a>");
    Paste this code in doContent...
    I think it may help you
    Thanx & Regards
    Anish

  • Safari doesn't open maximized from a link in email

    When I open Safari from a link in the email program I use (Eudora Pro), the webpage doesn't open maximized-fills only about half of the monitor screen. Any ideas on how to troubleshoot this problem. I did right-click on the Safari icon and changed the setting to open Safari maximized-still doesn't open it completely from a link.

    Hi Swarup,
                     You know to tell which mail format are you using, whether is Outlook or Lotus. SAP Connectors need to be installed for the same depending upon the mail type.
    Regards,
    Abhishek Raj.

  • How to clear all component in internalframe?

    I want to clear all components in the frame, but the frame isn't remove, just remove all components, it becouse i want to add anothers component. So i just want a new blank frame. how must i do?

    sayunara wrote:
    i has two frame 1 main frame,1 internalframe. if i use internalFrame.removeAll(), my internalFrame is gone too, i just want to remove components in the internalframe, but not the internalframe.Don't post in this thread, I have tried to direct all answers to the other thread (that's why I posted a link in this one)

  • How do I turn off the window maximizing feature when I click the top window frame?

    Clicking on the top window frame causes Firefox to maximize. This is the only program I have that does this, so I am constantly doing this accidentally. It causes me no end of annoyance, having to minimize the Firefox window every time to see the other window I am using at the same time. Is there a way of turning this "feature" off? I have looked through all controls tabs I can find, and the help files on the Firefox website, and can find no answers to this.

    Unintended consequences ... my favorite kind! New information - this appears to be a Windows issue - sorry Mozilla. Another app (Word) just started doing the same thing (previously only observed with Firefox). If the app is too close to the top of screen, and you select it, and slightly move it, it maximizes. I heard this is standard in Windows 7, but I am using XP. This is becoming typical of the annoying hubris of Microsoft that will likely make my next OS Linux. I am not blind, and in need of Microsoft making a single window maximally readable, especially at the expense of all the other windows. If I wanted my computer to make all of my decisions for me, I would have stuck with Apple!
    Sorry Mozilla help board - I just had to get it off my chest!

  • Can I adjust the size Firefox maximizes to, since it leaves a small sliver of space on the left-hand side, even when maximized?

    When I have my dock set to the left-hand side of my screen, Firefox maximizes to all but a small sliver of space on the left hand side. Is there a way to change the default maximized window parameters (in about:config or something), or is there an add-on that will allow you to do it?

    In Mac OS X v10.7 and later, the $HOME/Library folder is a hidden folder.
    Open Finder and use one of these:
    *Go > Go To Folder (Shift-Command-G) and in the dialog type: ~/Library
    *Open the "Go" menu and hold down the Option key to make the Library appear
    *http://kb2.adobe.com/cps/909/cpsid_90947.html Access hidden user library files
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder

  • Generating a Report on web in Maximized state

    Hi,
    I'm generating a report on web.It is generating in PDF format. But it is not displaying in maximized state. I've to click on maximize button and have to maximize it. I used the following code to maximize it.
    Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    It works fine in Client/Server, but not on web. Can somebody let me know how can I display it in maximized state.
    Thanks,
    Srinivasa Karri

    Add_Parameter(pl_id, 'MAXMIZE', TEXT_PARAMETER, 'YES'); only applies to reports previewer. When you run report on the web to pdf format, it is displayed in acrobat, and we (reports) doesn't have control for the acrobat windows size. Yes, you have to manually click maximize button on the acrobat viewer.
    Thanks,
    -Shaun

  • New windows no longer opening maximized, what can I do?

    Until today, a new window was always maximized? What can I do to return to that situation?

    A new window opens with the dimensions that are saved in the file localstore.rdf in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] the last time you closed Firefox.
    RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    See also http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Compiled executable does not open in maximized window

    I have attached a JPG showing the VI Properties that pertain to Window size.  Despite the fact that I have indicated in Run-Time Position - Position:  Maximized.  The compiled executable does not open in a maximized window.
    Even stranger, if I take the shortcut for the program and change it's properties (on the target machine) to Open Maximized, it still doesn't open maximized.
    I have had this behavior with every compiled executable for a couple of years using versions of LabVIEW 8, 2010, 2011 and currently 2011 SP1.  Both the compiling machine and the target machine are Windows XP.
    Is there any explanation for this behavior?  Any way to correct it?
    Solved!
    Go to Solution.
    Attachments:
    VI Properties.JPG ‏81 KB

    I think Ravens Fan is correct. The aspect ratio appears to take precedence over the window position.
    You can set a property manually in your code to maximize the window.
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/vi_fp_winstate/
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • The maximize/minimize and close and buttons are not shown correctly when FF windows is maximized.

    I have the same problem on all my computers, one running Windows 7 and two with Vista.
    The three buttons in the upper right corner of the FF windows are not shown correctly. They are soft of cut off in the middle when the FF window is maximized.

    It is possible that the screen is too wide or too high and that the scroll bars fall off.<br />
    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox to save that setting.<br />
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    Window sizes and positions are stored in [http://kb.mozillazine.org/localstore.rdf localstore.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder].
    See http://kb.mozillazine.org/Corrupt_localstore.rdf

Maybe you are looking for

  • Can I create a fillable form in Pages and then PDF to iWeb?

    I'm a teacher and I'd like to be able to upload some PDF documents for my students to download, but would LOVE it if I could make sections of the document available for them to fill out answers, so they could, in turn, save as PDF and send back to me

  • Printing From My Macbook to My WinXp Printer

    I just bought a brand new Black Macbook for myself (which I love!) but I have seem to run into a little issue with Network Printing. I have a Hp PSC1350 All-In-One on my Hp Pavilion desktop downstairs and I would like to be able to print from my Macb

  • I am not authorized to view my screenshots. what can i do?

    my computer will not allow me to view my screenshots/screencaptures that i have taken. it says that i am not authorized to view them but i always have been. what may i do to fix this?

  • JTextfield background color for one line

    Hi everybody, How can I change the backgroundcolor for one single line in a textfield? I think it's nog possible in an ordinary JTextfield, does anybody know how I can do this? Best regards, Jethro

  • Can't Open iTunes-Quicktime error

    When I last tried updating my iTunes I had to cut the installation short and ever since I haven't been able to start iTunes. It tells me that Quicktime was not found and to reinstall iTunes. I've tried reinstalling iTunes many times but it doesn't wo