New Window in NetBeans 6.0.1

Hi,
     I am new to using NetBeans � though I have used Eclipse before. In Eclipse we can open a new (Editor) Window selecting from the menu on the top �New Window� -> Window. Is there any corresponding way to do this in NetBeans? This is helpful when using multiple monitors.
     I hope this is the correct place to ask NetBeans related questions. If not please point me in the correct direction.
Thanks a lot.
O.O.

Dear Radhika and Kish,
     Thanks for posting. Yes, I joined the nbusers group in the links you provided. They basically told me that it is not possible. There is no way to get a New NetBeans Window like Eclipse does.
     The closest that you can do is to Right Click on the tab of the open file and select �Clone Document�. Then click on the Tab of this new Document and drag it out the main window.
     I have two monitors � and it helps to have the documents on each monitor when I am working.
So that�s it.
O.O.

Similar Messages

  • Problem displaying PDF file in new window.

    Using NetBeans 6.5, Internet Explorer 7.
    I am using the code example from BalusC at the site:
    http://balusc.blogspot.com/2006/05/pdf-handling.html
    I am having no problem reading and displaying the PDF file, but it displays it in the same window,
    not a new window and it overwrites the current page, so I can't use the back arrow to fetch the page that is overwritten.
    I am using a commandLink to fetch the file.
    Does anyone know why I am not getting a new window or tab for the display?
    The jsp portion for the link is:
    <h:commandLink action="#{MainPage.linkAction3_action}" id="linkAction3"
              style="color: rgb(0, 0, 0); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; left: 280px; top: 0px; position: absolute"
              target="_blank" value="Insurance Document"/>The "MainPage.linkAction_action" method just makes a call to the display function:
        public String linkAction3_action() {
            sb1.setMessage("");
            dsb.setFilePath("C:/");
            dsb.setFileName("Insurance_Summary.pdf");
            dsb.downloadPDF();
            return null;
        }And the downloadPDF() method is basically a cut and paste from the BalusC site;
        public void downloadPDF()
            // Reference:   http://balusc.blogspot.com/2006/05/pdf-handling.html
            // Prepare.
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExternalContext externalContext = facesContext.getExternalContext();
            HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
            File file = new File(getFilePath(), getFileName());
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open file.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                // Init servlet response.
                response.reset();
                response.setContentType("application/pdf");
                response.setContentLength( (int)file.length());
                response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            catch( Exception e )
                System.out.println( "Error displaying file.");
            finally {
                // Gently close streams.
                close(output);
                close(input);
            // Inform JSF that it doesn't need to handle response.
            // This is very important, otherwise you will get the following exception in the logs:
            // java.lang.IllegalStateException: Cannot forward after response has been committed.
            facesContext.responseComplete();
        }

    1) window.open will open a new window and call a servlet.
    window.open ("http://path_to_yourservlet/PDFServlet", "newWindowName");
    if you ant to pass some values from your web page to the servlet you can pass as
    window.open ("http://path_to_yourservlet/PDFServlet?param1=value1&param2=value2", "newWindowName");
    2) The servlet will fetch and display the pdf file.
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class PDFServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet
         private final static int DEFAULT_BUFFER_SIZE = 1000;
         public PDFServlet()
              super();
         public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String fileName = "Insurance_Summary.pdf";
              File file = new File("C:/"+fileName+"");
              response.setContentType("application/pdf");
         OutputStream output = response.getOutputStream();
         BufferedInputStream input = null;
         //BufferedOutputStream output = null;
         try {
         // Open file.
         input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
         response.setContentLength( (int)file.length());
         response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
         output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
         // Write file contents to response.
         byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
         int length;
         while ((length = input.read(buffer)) > 0) {
         output.write(buffer, 0, length);
         output.flush();
         catch( Exception e )
         System.out.println( "Error displaying file.");
         finally {
         input.close();
    Regards,
    Milind Dhar

  • Difference between JDialog and a new window

    Hello,
    I have GUI window which contain maybe 10 buttons, and for each of them I add an event listener. When different button clicked, it open a new window which allow user to enter some value. I didn´t use dialog, I did like :
    Button1.setFont(new java.awt.Font("Arial", 0, 12));
    Button1.setText("Button1");
    getContentPane().add(Button1, new FlowLayout());
    Button1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    Button1ActionPerformed(evt);
    public void Button1ActionPerformed(java.awt.event.ActionEvent evt){   
    new window1();
    public class window1 extends JFrame {
    // this class is a new window not a dialog.
    // add some buttons and textField so user can enter some number to text field.
    Button 1 --> open window 1
    Button 2--> open window 2
    Button 3-->open window 3
    My problem is, only one button works. Button 2 and 3 are not working even I did the same thing to them as button 1. Do you think I should change window1 into dialog?
    I have also problem with netBeans. My netBeans seems always remember my old executed code. For example if I delete button 1 listener, and run it. Button 1 still works even the code not existing anymore. Has anybody experience the same. I am really angry about this issue. Can anybody help me?
    Thanks in advance!
    Clare

    hello,
    Where can I set this Build Automatically property?
    I didn´t use dialog, instead I create a new frame. here is code.
    import javax.swing.*;
    import java.awt.event.*;
    import java.lang.Math.*;
    public class Class2 extends JFrame{
          JTextField text1= new JTextField(20);
          JTextField text2 = new JTextField(20);
          JTextArea text3 = new JTextArea(5,8);
          JLabel label1 = new JLabel();
          JLabel label2 = new JLabel();
          JLabel label4 = new JLabel();
          JLabel label5 = new JLabel();
          JButton showResult = new JButton();
          JButton ok = new JButton();
           public Class2(Class1 c){
          cl = c;
          setSize(400,300);
          setTitle("Class2");
          getContentPane().setLayout(new FlowLayout());
          label1.setFont(new java.awt.Font("Arial", 0, 12));
          label1.setText("Total ");
          getContentPane().add(label1, new FlowLayout());
           text1.setFont(new java.awt.Font("Arial",0,12));
          text1.setBounds(5, 8, 5, 5);
          text1.setEditable(true);
          getContentPane().add(text1, new FlowLayout());
           // add text field2
          text2.setFont(new java.awt.Font("Arial",0,12));
          text2.setBounds(5, 8, 5, 5);
          getContentPane().add(text2, new FlowLayout());
          text2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    text2Performed(evt);
          label2.setFont(new java.awt.Font("Arial", 0, 12));
          label2.setText("Press enter");
          label2.setToolTipText("Press Enter");
          getContentPane().add(label2, new FlowLayout());
          label4.setFont(new java.awt.Font("Arial", 0, 12));
          label4.setText("type number");
          getContentPane().add(label4, new FlowLayout());
          // add text field3
          text3.setFont(new java.awt.Font("Arial",0,12));
          text3.setBounds(5, 8, 5, 5);
          text3.setEditable(false);
          //text1.setText(Roadpeople);
          getContentPane().add(text3, new FlowLayout());
          label5.setFont(new java.awt.Font("Arial", 0, 12));
          label5.setText("Count ");
          getContentPane().add(label5, new FlowLayout());
          // add showResultButton
          showResult.setFont(new java.awt.Font("Arial", 0, 10));
          showResult.setToolTipText("show result");
          showResult.setLabel("show result");
          showResult.setMargin(new java.awt.Insets(2, 2, 2, 2));
          getContentPane().add(showResult, new FlowLayout());
          // add ok button
          ok.setFont(new java.awt.Font("Arial", 0, 10));
          ok.setToolTipText("ok");
          ok.setLabel("ok");
          ok.setMargin(new java.awt.Insets(2, 2, 2, 2));
          getContentPane().add(ok, new FlowLayout());
          setVisible(true);
           }Thanks

  • Which Component or container in Swing allow to Display new Windows

    Which Component or container in Swing allow to Display new Windows as like property windows , nevigator windows as with most of IDE (like netBeans)and also when windows is closed that space is utilized by existing open other windows, if new window open than it adjust to existing open widow so that both window open side by side, vertically or horizontally
    I want it
    help me

    hi!
    JDesktopPane - JInternalFrame - JLayeredPane
    http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html
    :)

  • How to pen new window while redirecting to a page

    Hi,
    I have a jsppage 1,jsppage 2 and aspPage. In jsp2 I am getting the
    values from jsp1 using request.getParameter("hhhh").Once I get
    all values in jsp2 , as soon as I got the values I need to redirect to asp from jsp2.
    I don't have any form or any button in jsp2.When I do submit in jsp1,
    immediately it has to open asp page in new window. My question is how
    I open the asp in new window in this redirection case .....?.
    I tried this way but not working ...
    WebsiteUtils.sendRedirect(request,response,window.open("ASP page"));
    I know if I have submit button in jsp2 I can write a javascriptfunction
    to opennew window but here the case is different....
    Appreciate your reply.
    Thanks

    On jsppage1, instead of using a from submit button, you can create abutton and write th onClick as
    <input type="button" value="OK" onClick="window.open('jsppage2.jsp','win2');">
    Now in Jsppage2.jsp, after doing all the processing, use sendRedirect to call jsppage3.jsp.
    Since jsppage2 is never being displayed, page3 will bw the one which will be shown in the new window opened by the name win2 on onClick.
    If I have understood your requirement correctly, then this should work for you as I have tried it out.

  • When clicking on links that open in a new window, the links don't open and Firefox freezes in a way. I can navigate the page I am on but cannot click to open a new tab or bookmark.

    When navigating the internet, if I come across a web page that has a link to open a picture or program in a new window, if I click on it, it does not open. Firefox immediately looses functionality in that I cannot open a new tab with the mouse wheel, right click to open a new tab, or use my bookmarks in either the drop down or toolbar to navigate away. I can usually still navigate the page that I am on, for example, (https://loanconsolidation.ed.gov/AppEntry/apply-online/appindex.jsp), when it freezes I cannot click on any of the content at the center of the page but I can still use the links from the list on the far left. For an example of the pictures, (http://www.insect-sale.com/), if you click on "New Arrivals" at the top of the page it takes you to a list of products that can only be viewed by clicking on them. Usually a picture of the item would open in a small window but it does not and Firefox freezes. This has also happen when I try a view a degree audit on a school's website where a program would usually open in a new window. The only thing I have been able to find that still functions properly when this happens is the home page button. I can click on it or use the wheel to open it in a tab just fine, but if I try and go anywhere else I cannot. The only way I can get Firefox back to normal is to use the Task Manager and end the process. Another thing I have noticed, that may or may not be related; is that my Norton Internet Security toolbar, that should show up below the bookmarks toolbar and above the tabs, only shows up about 1 out of every 10 times I open Firefox. Some days it doesn't show up at all. If it does show up and I log into Identity Safe, the autofill for the programed website works, even if the toolbar doesn't show up the next time I open Firefox.

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • Firefox will not open new windows, opens with session restore every time I use it, and won't let me open the throubleshooting tab... Why?

    Whenever I try to open a new window, nothing happens. This includes clicking ctrl+N and through the drop down menu.
    Also, whenever I start firefox to browse the internet, it always open with a Session Restore with the previous session listed, even though I closed all the tabs and shut it down normally without any prompts telling me about saving multiple tabs.
    Finally, when I tried to troubleshoot this problem, the tab never appeared. The only options that work on the Help Menu are:
    - Firefox Help (after a few clicks)
    - Report Broken Web Site
    - Check for Updates
    - About Firefox

    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
    There are other things that need your attention.
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/

  • Open iView in new WINDOW for CATW

    HI All,
    We are on Netweaver2004s and the browser used is either Internet Explorer 7 (Microsoft Vista) or Mozilla Firefox.
    Now what I need help on is that I have a link on my page that says "Report Your Time", this link calls the Internet Service CATW via the  ITS from my R/3 and opens the TIMESHEET (which is an iView) to be filled in by the user <b>in a new window</b>.
    On this TIMESHEET I have a link called as "EXIT" , now after the timesheet is filled and saved, the user should use this "EXIT" link to leave the window. The code behind "EXIT" is so written by SAP that it kills the user's session. But not always and all user's use this "EXIT" link, they generally close the window by browser's (X) close button. This causes the user to get locked in the backend.
    So far I have been able to trap the browser's (X) close button and kill the session by using "setOKCode('/nex')". This works fine in I.E 6 (which has no tabs) and if the user <b>closes</b> Mozilla Firefox from the top (X) close button of the browser.
    BUT, in I.E 7 and mozilla firefox, when the user clicks on "<u>Report Your Time</u>" link on my page, a new tab opens and the TIMESHEET is displayed on this tab within the same browser window, so after filling and saving the timesheet when the user closes the (TIMESHEET) <b>tab</b>, the session does not get killed and the user gets locked in the backend. Here, <b>if</b> the user had closed the entire browser window by using the  the top (X) close button of the browser, instead of just closing the <b>tab</b> containing the TIMESHEET, then his session would have been killed by my code.
    This is the code that identifies if the user has clicked on  top (X) close button of the browser. <b>But this code does not identify if a browser's tab is closed.</b>
    <BODY onbeforeunload="HandleOnClose()">
    <script language="javascript">
    <!--
    function HandleOnClose() {
       if (event.clientY < 0) {
          event.returnValue = 'Are you sure you want to leave the page?';
    In the above I check clientY property of the event object, which is used to set or retrieve the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
    Is there a way to capture the closing of a browser's tab. A way by which I can trap the event raised when the browser window's tab is closed.
    This has to be done via "Java Script" since the code will be placed in the HTML template in SE80.
    Kindly help with your expert suggestions
    Regards
    Saurabh

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

  • Report on a new window

    Hi All,
    I have a calendar and a report on the same page:101. But I want to open a report on a new window whenever a user clicks on the event. I can not move the report on the different page because it is before login and public.
    Please let me know.
    Thanks.

    If you're wanting to just dump some data to a new window/popup, in the "Column Link" section:
    + Select "URL" for the Target field.
    + Enter the following in the URL field:
    javascript:var newwin=document.open('','_errmsg','width=500,height=500'); newwin.document.write('#ERROR_MSG#')
    ...where ERROR_MSG (for this scenario) is one of the columns/attributes on the page.

  • Opening a new view in a new window on click of a table row entry.

    Hi Guys,
    How to open a new View of a same application in a new window (just like a pop up) on a click of a Table Row entry?
    I am using NWDS 7.0 version. So please suggest acccorrdingly.

    Hi Nikesh,
    first of all you will have to declare use of onLeadSelect event handler for your table (note that it will only be triggered when a lead selection occurs not a multiselection).
    Also, you can build at design time a View and a Window (for example, PopupWin) in your WebDynpro Component, and embed the view into the window.
    In your code for onLeadSelect function, you can use something like this to pop up the window.
    public void onActionRowSelection(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSeleccionTabla(ServerEvent)
        IWDWindowManager windowManager = wdComponentAPI.getWindowManager();
        IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopupWin");
        IWDWindow window = windowManager.createModalWindow(windowInfo);
        window.setWindowPosition(WDWindowPos.CENTER);
        window.setWindowSize(new WDCssSize(450, WDWindowUnitOfLength.PX) , WDCssSize.UNDEFINED);
        // Store handle ti window in context attribute to able to close it later
        wdContext.currentContextElement().setPopup(window);
        window.show();
        //@@end
    Hope it helps,
    David

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

  • Is there a way to open new tabs on the same site without having them go to a new window?

    i like to go to article sites and open up many tabs where each tab is a new article. this allows me to quickly go from one article to the next. when i try to do this with the new firefox it opens the new tabs in a new window because they are from the same site. is there any way for me to turn that feature off?

    Do you mean the Switch to Tabs kicks in if you enter an already opened URL?
    *Switch to Tab no more: https://addons.mozilla.org/firefox/addon/switch-to-tab-no-more/

  • Is there any way to view two tabs at the same time w/o opening a new window?

    I would like to view one tab while I am working in another. I can do it by opening one of the tabs in a new window and tiling both windows on the screen. Is there any way to do it within one window?

    Just installed Split Panel and it looks like it will do exactly what I want.
    Thanks,
    (Don't know how this got in here twice. I'd like to delete it but can't figure out how to.)

  • When I open a new link or bookmark I want it to open in a new window not a slew of tabs so I can see which sites I have open.

    I'm sorry if I'm not using the correct terminology. When I open a new window or a link I want it to open a whole new window so I have 500 open FireFox tabs in my taskbar if I open that many windows. I do not like having everything open in one window. Used to be I could find how to undo that but you changed everything on me and now only rocket scientists can use your application. If Chrome and Internet Explorer weren't so ridiculous, I would change. Thank you for any assistance you can provide.

    This didn't help me at all. I want a separate window to open each time I open a new tab or bookmark. Currently when I open a new link it just adds a tab to the window already open so from my non-technie point of view, I only have one window open and have to go up top to see what is open vs. being able to look below in my taskbar and see what I have open.

  • Getting Page Load Error while opening a Opportunity in new window

    Hi All,
    outbound SSO is enabled.
    when i try to punch-in to my application from CRM through opportunity web link with Web Link Target as "open in custom tab" its working properly, but when i have Web Link Target as "open in new window" i am getting page load error. previously with out Outbounf SSO it is working properly.
    Do i need enable any settings in CRM
    thanks

    when the web link target is "open in new window" or "open in current window" the request send to third party application from CRM ONDemand is HTTPS request as SSL is not enabled it is giving "page load error"(In the web link we are specifying http only) (User athentication type is "username & password/ SSO")
    Is there any setting in CRM Ondemand to send Http request only instead of HTTPS?

Maybe you are looking for

  • File not found in Link Between Projects Window - test no edit rights to other file

    Hi, I am doing a test to see if i can create a link by typing the link path (f.i. <>\plan2\1) in the predecessor column without having edit rights to the other plan. I expect this to be possible as the edit in the other plan (creation of link) is onl

  • How to use a microphone with my iMac?

    Hi, I recently purchased a headset to use in Ventrilo for communicating with my clients. I've plugged it into the line in and line out ports on the back. I can hear audio play just fine but when I select "Line In" as the input source in System Prefer

  • Problem in SLD configuration

    Hi, While configuring SLD, when we tried to trigger in Visual Administrator we got following error. SLD Data trigger error <b>Operation failed! Failed to collect SLD data. Failed to send HTTP data:500:Internal Server error. Please check if the target

  • Envelope Margins on L7580

    I noticed that similar questions have been posted here and never answered, so I thought I'd try again. I have the same problem others have:  when I try to print an envelope, the printer insists on a .665 (or something near that) margin at the top, so

  • HT4623 How do you update iphone 4 ios version 4.0.1

    My Facebook app was crashing so I deleted it and tried to reinstall it but it says that I have to have IOS 4.3 to install.  I tried getting on FB through Safari and it still crashes there.  How do I update IOS on my iPhone 4? It doesn't have a place