Opening a new window when a JMenu Item is clicked

hiii..
i have a main window.it has two menu items.File and Capture.When i click on Capture menu's item, a new window should appear which should have many JComponents such as textbox,labels etc on it .I know this has to be done in ActionPerformed of the JMenuItem.But i m not able to makeout what has to be done for a newwindow to appear..plzzz..can anyone guide me..

sloppy code
JMenuitem open;
public actionperformed(event e)
if e.getsource == open
displayframe();
public void displayFrame(){
JFrame = new jframe
frame.pack()
frame.show()
}

Similar Messages

  • How do I get firefox to open a new window when i click on a link in a webpage ?

    When I click on a link in a webpage in Firefox, generally it opens the new page in the window i am in (though some times it does not). How do I get it to open a new window (or tab) each time I click a link.
    For example, on www.bbc.co.uk if I click on a link, the new page opens in the same window, if I then click another link in the new window, again, it opens in the same window. To get back to the original window, I have to use the back button twice. Surely there is a setting so that all 3 windows can be open on separate tabs or separate windows.
    I have been to the tabs window in options, but doesn't seem to make a difference.

    Open link/bookmark in new tab in same window:
    *Middle-click (press the mouse scroll wheel) the link
    *Ctrl+left click the link
    *right-click the link, choose "Open Link in New Tab"
    Open link/bookmark in new window:
    * Shift+Enter on the link
    * Shift+left click on the link
    See: http://www.7is7.com/software/firefox/shortcuts.html

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can I set Safari to open a new window when I click on it in the dock?

    is there a way to set my safari to open a new window when i click on it in the dock i surf multiple websites at once and i dont like how i have to right clik and scroll up to pick open a new window. can i set it to just open a new window instead of opening the page that already opened

    yeah, instead of using multiple windows, you can use multiple tabs inside one window. That way, you can browse multiple websites at once without having to flick back and forth between multiple windows.
    To open tabs of the websites you want to browse, just right-hand click on whatever website you want to visit (For example a site from your bookmarks or a site from a Google search result) and select 'open link in tab'.

  • How do I stop Firefox from opening a new window when I go to a search item?

    When I do a search, and click on a topic, Firefox opens a new window on the tool bar at the bottom of my screen. How can I stop this from happening?

    I'm guessing you use Google for search. There is a setting in Google search to open each result in a new window. (When you use tabbed browsing, that means each result opens in a new tab.) You can check on whether you have that setting turned on as follows:
    On a Google results page, click the button on the right side with the "gear" icon, then click Search Settings from the drop-down list. At the bottom of the page is the setting to open results in a new window.
    Is that the culprit?

  • How to force safari to open a new window when dock icon is clicked

    If Safari is already running on my MacBook Yosemite, and I click on the Safari icon in the dock, the Safari window is brought forward.  The behavior  I want is whenever I click the safari icon on the dock, is that a new safari browser window is opened.  I don't see this option in preferences (or any keyboard  mouse combination) that would make the dock icon open a new browser window.    (an option is available for new windows if you click on a hyperlink, but not if you click on the dock icon) .
    p.s. And I don't want to first  have to place focus on the current running safari and then click File New...too many steps when all I want is a new browser window
    Thanks in advance

    Hi css,
    Welcome to the Apple Support Communities!
    I understand that you would like to click on Safari in your Dock and have it open a new Safari Window. As you said in your post, clicking on Safari in the Dock brings the Safari window forward. There are a couple of possibilities to help resolve this situation. You can control-click (right click if enabled) on Safari in your Dock which will give you the option to open a new window. You can also click and hold on Safari, otherwise known as Press, to display these same options.
    Mac OS X: Additional features of the Dock - Apple Support
    Mouse clicks and key combinations for the Dock
    Control-click
    Reveals contextual menu for item. Menu choices vary per application or file. When used on Dock separator, it reveals Dock preferences. There you can turn magnification and hiding on or off, change the position of the Dock on screen, and change the minimization effect. Choose Dock Preferences to see more options.
    Press
    Reveals contextual menu for item. Menu choices vary per application or file.
    Cheers,
    Joe

  • Problem with openning a new window when click news tiltle link

    After create a news item using News form created by XML form builder, i try to click title link, It always opens a new window, what i want is keep it in same window when i click the title link, not open a new one. Is there anyone know how to do that? thanks

    Hi,
       I think its not possible in case of XML Form Builder. Bcoz,
    <b>Edit Form</b>:it is for authoring like creating News
    <b>Render list Form</b>:It is for Publishing the News
    <b>Show Form</b>:It is for showing the whole content of the News
    In XML Form Builder, by default when you create a new form these forms ie. Edit Form (You will design the Form here, only authorised person or the owner only view this).
    The Second Form(Render List Item) is the one will be shown to everyone with brief information.
    The Third Form(Show Form) is the one when you click on the News page, it will show you one more screen, there you can see the detailed description about the News.
    So, when you click on the Rendered List Item Title, it will open only in the separate window.
    Regards,
    Venkatesh. K

  • Opening a new window when clicking on object links

    Hi,
      I have installed business package for crm and configured the object links, but when i click on object links, it is opening a new window, but i want it to be opened in the same window form which that link was activated.
    could you please help me in this regard
    Thank you

    Hello Koduru,
    you should have a look at the work protect modus settings of the user.
    Regards
    Gregor

  • Is it possible to keep Firefox open after all windows have closed (and to additionally open a new window when starting another Firefox process)?

    Yes, yes, I know, it's not good to keep applications open when they aren't designed to be. I'm sure Firefox has some memory leaks and this is doing more harm than good, but...
    My computer isn't the greatest out there, and to increase the usability of my Firefox browser it would be nice to keep the firefox.exe process open, even after closing all windows. I know Firefox doesn't totally close if there is at least one Firefox-related window open, but having to open X popup window seems a bit extreme to get this effect.
    Additionally, to allow another window to be opened, it would be cool for the "OH NO FIREFOX IS STILL OPEN" prompts to be replaced with just attempting to open a new window, if this feature is enabled.
    So, if it exists already, is there a config variable for it, and if it doesn't exist, is it possible to perform somehow? I'm not afraid to get my hands dirty if it comes to it; I'd really like to get this happening.
    I'm running Windows 7 Home, if it matters. (I'd rather be running another OS, but this is neither the time nor place...)

    LINK: https://addons.mozilla.org/en-US/firefox/addon/minimizetotray-revived/

  • Why does safari open a new window when a search is entered

    so I open safari like normal , go yahoo bookmark. then do a search thru yahoo. select it then it opens a new safari window. How do I stop this , so the selected searched item stay on current tab, rather then opening a new window

    I suspect that it is the Yahoo search page which is asking for a new window.
    Help Central | Help - Yahoo!
    See the various options in Safari, Preferences, Tabs for mitigation.

  • Open a new window when you click on a button

    Hi all,
    I'm a newbie on BPS and web interface on BPS. I have a problem on how to open a new window.
    I explain:
    We have a page with a button which call a function. We want to change this button in the way when you ckick it, a new window appears and present a page with two buttons which call each a function(this page is already created thanks to bps_wb).
    The problem is : how to modify the button in the way it opens a new window with in parameter the page.
    Thanks by advance.
    Best regards,
    Nicolas

    Hi Nicolas,
    I don't know about a pop-up, but if you are trying to open a page (page 2) in a new window (internet explorer window), then do the following:
    Instead of using a navigate pushbutton, use a hyperlink component.
    In the URL selection option insert the URL (web address) of page 2. You can find the URL by going to SE80, in the repository browser select "BSP Application" and "THE TECHNICAL NAME OF YOUR BPS". Open your BSP and go to the folder "pages with flow logic" and find your "page 2". Double click on your page and then select the "properties" tab and navigate to the bottom where you will see the pages URL.
    Insert this URL address into your hyperlink component back in the Web Interface Builder.
    Leave the Target selection as parent. Make sure your internet explorer enhanced options are set to "not reuse the same window" under the browser options.
    Good luck.
    Rael

  • Open a new window when a user clicks a button

    Hello!!
    I have the following problem, I have a table with a button, and when the user clicks the button, I want to open a new window, I don't know how to set the button so that it opens another window...
    Does anybody have an idea of how to do this??
    thank you in advance

    Hi,
    Following thread may help you
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=53654
    MJ

  • Default to "open in new window" when posting a link

    I always forget to set my links to open in a new window and have to go back and edit my post. I also don't like when I may click a link in a thread which takes me to another thread, and I click that link etc, and then realize I have to hit back 15 times to get to the thread I started on. This is a matter of preference, and I feel the "open link in current window" option should still remain, but I would like to see open in new window as the default.
    CLA, LabVIEW Versions 2010-2013

    Ray Farmer wrote:
    doesn't actually go to that newly opened Tab though.
    That's on purpose. The assumption is that you usually don't want to be interrupted from the current page, or you could have simply followed the link and then pressed back. In FF, at least, holding Shift down does take you to the newly opened tab and there's also an option for configuring it.
    Try to take over the world!

  • How do I change firefox to open a new window when I start it several times instead of opening a new tab when I want to go to a different location?

    I want to go to several different websites at the same time. I want to compare the information on each site. I do not want to open a tab, I want a whole new window. How do I change firefox so it will open a new window instead of opening a new tab and then requesting the site I want to go to?

    In Windows XP I am able to right click a link and get an option to open it as a new Firefox window
    *'''tear off tabs'''
    You will probably note tabs can be dragged along the tab toolbar, they also tear off. You can click a tab and drag it off the browser onto the Windows Desktop where it will open as a new window, or drag it on to another open browser window.
    An alternative is to click the tab and drag it down, again it will then open in a new Window.

  • How can you get CMD + L to open a new window, when all windows are closed?

    In Firefox 28 and earlier, you could hit Apple + L (CMD + L) when no FF windows were open, and it would pull up a blank page with the cursor blinking in the address bar.
    After installing FF 29, when you hit CMD + L (with no windows open) it just plays the system alert sound and does nothing.
    I want to be able to hit CMD + TAB to gain control of an idle Firefox, and then be able to hit CMD + L to gain control of a BLANK address bar.
    Every other version of Firefox I've ever used did this, so am I missing something here? Any ideas?
    Note: I realize that you can hit CMD + N to launch a new window and then CMD + L to select the text within the address bar. I'm not looking to re-train my habits within Firefox, but simply want that feature like it was in the previous 28 versions.

    Well, after an entire week without a word from Mozilla, I officially give up.
    I understand that new software will have bugs when it is released. I understand that the bugs are fixed in the order of greatest impact/priority. I also understand that my issue is not a bug, rather a feature that was inexplicably removed.
    A couple of things I cannot understand —
    Why would Mozilla remove '''ANY''' features from their software when they are touting this as the most customizable web browser ever? That is obviously not logical and will be to their detriment in the long run.
    Furthermore, if a person did get on here just to complain about this update, they were immediately met with a canned response from a moderator, which offered a few options to make Firefox '''LOOK''' like the previous version. That speaks volumes about this update and the developers' confidence in it. The person who gets on here with a legitimate problem asking why a feature was removed — they get '''NO''' response from a moderator. Again, this speaks volumes. I am not even asking for an immediate solution to this problem, just the acknowledgement that there is a problem. On top of that, especially in the development of software, the old adage particularly rings its truest — ''If it ain't broke, don't fix it.''
    Lastly, I think we can all agree that Firefox 29 is a blatant ripoff of Google Chrome. If I wanted Google Chrome, that is exactly what I would have downloaded. That pains me not only as a devout Firefox user for nearly 10 years, but especially as I have donated over $200 to the Mozilla Foundation in that time. In other words, I have financially supported the development of a software that has become absolutely indifferent to its users' needs, and moreover, they have now resorted to copying off of their neighbor.
    I have since rolled back versions — all the way to Netscape Navigator 9 — which seems to have just about as much functionality as the bungled mess that is Firefox 29.
    I genuinely appreciate all of the time and effort that goes in to creating open-source software, and I financially support the projects that I feel adhere to the open-source philosophy. That said, Mozilla.org seems to be straying away from this philosophy, to the point where, for me, it is simply time for a change.
    Thanks for the memories, Firefox!

Maybe you are looking for