How do i generate an internal  window

hi all..
how do i generate an internal application or applet window that responds to an event caused by pressing a JButton? i am trying to create a program that acts like a web page..therefore i would like for the other windows to be generated by pressing the buttons...like in normal web pages...
thanks...
eva

I your JFrame you must declare a JDesktopPane and before create JInternalFrame inside it:
public class MDIFrame extends JFrame{     
JDesktopPane desktop = new JDesktopPane();               
public MDIFrame(){     
     JInternalFrame child = new JInternalFrame();     
     this.getContentPane().add(desktop);
desktop.add(child);
child.setSize(400,400);
child.setVisible(true);
public static void main(String arg[]){
new MDIFrame().setVisible(true);
}

Similar Messages

  • How to change domain name on Windows 2003 running Exchange 2007

    Hi all,
    I have a windows 2003 server running Exchange 2007.  I am wanting to rename the domain, however when I search the web for the process to perform a rename of the domain I see "The domain rename operation is not supported in Microsoft Exchange Server 2007". 
    How can a domain name be changed?  http://technet.microsoft.com/en-us/library/cc781575%28v=ws.10%29.aspx
    The server runs active directory, dns, dhcp, and Exchange 2007.
    This change is being inspired by the change with SSL certs where internal addresses like .local will no longer be supported in the third party certificate registrars.  Recently we renewed our cert and did not include the .local URL.  Now the internal
    systems are getting warnings about the cert.   I tried generating an internal self signed cert but it seems only one cert can be valid with exchange 2007 running on windows 2003.  Thus the internal cert replaced the external cert and allowed
    the internal systems to run without complaining about the cert but the external access was causing warnings.  I reversed back to the third party cert.  This cert has company.com and mail.company.com and autodiscovery.  I believe if I rename
    the server to server2.company.com the autodiscovery will allow the server2 to be mapped to company.com and the cert will be valid for internal clients.
    Do I have this correct?  Are there errors with what I have found so far?
    Any suggestions about how to solve this issue short of getting a new server? How can I rename the domain?

    Hi,
    As you mentioned, the domain rename is not supported in Microsoft Exchange Server 2007.
    About your question with certificate, we can change URLs to xxx.domain.com. More details about this workaround, please refer to:
    https://support.microsoft.com/kb/940726?wa=wsignin1.0
    Note: please make sure the same name with certificate.
    Additional, Microsoft do not recommended to install Exchange server on a DC. I suggest install Exchange server on a member server. More details to see:
    Installing Exchange on a domain controller is not recommended
    http://technet.microsoft.com/en-us/library/ms.exch.setupreadiness.warninginstallexchangerolesondomaincontroller(v=exchg.150).aspx
    Best regards,
    Allen Wang

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • How to create an dynamic internal table with the structure of a ddic table

    Hi all,
    I want to fill ddic-tables (which I already created) in my abap dictionary with data out of CSV-files (which are located on the CRM-Server).  The ddic tables have different amount of fields.
    I started with creating a table which contains the name of the tables and the path to the matching CSV-file.
    At the beginning I'm filling an internal table with part of this data (the name of the ddic-tables) - after that I am looping at this internal table.
    LOOP AT lt_struc ASSIGNING <lfs_struc>.
         LOOP AT lv_itab1 INTO lv_wa1 WHERE ztab_name = <lfs_struc>.
         lv_feld = lv_wa1-zdat_name.
        ENDLOOP.
        CONCATENATE 'C:\-tmp\Exportierte Tabellen\' lv_feld INTO lv_pfad.
        Do.
        OPEN DATASET lv_pfad FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
        READ DATASET lv_pfad INTO lv_rec.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        enddo.
        REPLACE ALL OCCURRENCES OF '"' IN lv_rec WITH ''.
        SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
        INSERT into (<lfs_struc>) values lr_str_value.
        CLOSE DATASET lv_pfad.
    endloop.
    This is not the whole code, but it's working until
    SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
    I want to split all the data of lv_rec into an internal table which has the structure of the current ddic-table, but I didn't find out how to do give the internal table the structure of the ddic-table. In the code I used an internal tyble type string but I should be the structure of the matching tabel.
    If I try to create an internal table by using a fiel symbol, I am told, that the data types are not matching.
    Has anyone an idea?

    Hi Mayari,
    though you were successfull with
    METHOD cl_alv_table_create=>create_dynamic_table
    I must warn you not to use it. The reason is that the number of tables created is limited, the method uses GENERATE SUBROUTINE statement and this triggers an unwanted database commit.
    If you know the DDIC structure, it is (starting with ECC6.0) much easier:
    field-symbols:
      <table> type standard table.
    data:
      lr_data type ref to data.
    Create data lr_data type table of (<DDIC structure>).
    assign lr_data->* to <table>.
    The split code can be simplified gaining speed loosing complexity not loosing functionality.
    field-symbols:<fs_s> type any.
    field-symbols:<fs_t> type any.
    SPLIT lv_rec AT ';' INTO table it_string.
    loop at it_string assigning <fs_s>.
      assign component sy-tabix of wa_string to <fs_t>.
    if sy-subrc = 0.
      <fs_t> = <fs_s>.
    endif.
    at last.
      append <fs_itwa3> to <ft_itab3>.
    endat.
    endloop.
    Though it may work as Keshav.T suggested, there is no need to do that way.     
    Regards,
    Clemens

  • How to auto generate a different JPanel name or u guys have other ways

    displayPanel = new DisplayPanel();
              count++;
              String frameName = "Frame " + Integer.toString(count);
            iframe = new JInternalFrame(frameName, true, true, true, true);
            iframe.add(displayPanel);    
            iframe.setBounds(20, 20, 150, 100);
            iframe.setVisible(true);      
            jDesktopPane1.add(iframe);
            iframe.setToolTipText("Internal Frame");
            iframe.toFront();
            iframe.setName(frameName);with this coding, it is using the same displayPanel.
    I would like to let the user to press a ADD button and generate a internal frame with panel.
    How can i generate a different this panel with different name like displayPanel1, displayPanel2 and unlimited.
    The reason i wanna different name because i wan to call it out the displayPane.
    I can call it those different jInternalFrame. But how can i call it those inside jInternalFrame`s displayPane?
    Edited by: LxKaneShiro1 on Jul 6, 2008 4:51 PM

    LxKaneShiro1 wrote:
    displayPanel = new DisplayPanel();
    count++;
    String frameName = "Frame " + Integer.toString(count);
    iframe = new JInternalFrame(frameName, true, true, true, true);
    iframe.add(displayPanel);    
    iframe.setBounds(20, 20, 150, 100);
    iframe.setVisible(true);      
    jDesktopPane1.add(iframe);
    iframe.setToolTipText("Internal Frame");
    iframe.toFront();
    iframe.setName(frameName);with this coding, it is using the same displayPanel.
    I would like to let the user to press a ADD button and generate a internal frame with panel.
    How can i generate a different this panel with different name like displayPanel1, displayPanel2 and unlimited.Any time you see "this" in code, it refers to the object that line of code is in context for--the current object. You cannot change that.
    The reason i wanna different name because i wan to call it out the displayPane.
    I can call it those different jInternalFrame. But how can i call it those inside jInternalFrame`s displayPane?You do not need a name to "call" a Frame, you just need a reference to it:
    myFrame f = new myFrame();"f" contains the reference to your Frame and can be used as you need. If you need another Frame:
    myFrame f2 = new myFrame();"f2" now contains reference to a totally separate Frame.

  • Generating a Popup window based on BPM Form outcome

    Hi All,
    I'm currently working with a BPM workflow which is going through 6 levels.
    Each level having there own forms and each form having different customized buttons to flow the task to different paths. e.g; ASSIGN, CANCEL, RECHECK etc.
    These buttons are the outcomes of the Human Task. (I did not add 'Button' from components)
    I have a requirement to generate a popup window based on some of the button actions.
    This popup will have only two options.
    e.g -
    Popup window will ask 'Are you sure to proceed ?' then there should be two buttons to select Yes or No.
    'Yes' will send the instance to next stage and 'No' will remain the instance in the same user inbox.
    How do I do this ???
    Thanks,
    Nir

    Hi All,
    I found the way to generate the popup.
    But now my problem is how can I navigate( Complete the task from that level) the task from the Inbox after clicking OK button.
    There are several customized buttons in the form (e.g 'APPROVE', 'RECHECK' , 'CANCEL' etc.)
    I want to make the instance navigate to next level based on the button clicked.
    e.g.
    1. User will click on the 'CANCEL' button
    2. Popup will display to confirm the action
    3. When user click OK in the popup window task should be 'CANCELLED'
    (My problem is how to catch the button action he has performed )
    Any Ideas ??
    Thanks,
    Nir

  • How to Enable ahci in  bootcamp windows 7

    II've got a early 2011 17in MacBook Pro updated to the newest maverick os
    ive installed the newest bootcamp software and loaded windows 7 ultimate
    i I just upgraded my internal hard drive to a ssd
    how can I enable ahci for windows without being able to go into my bios?

    You can check to see if SERVEROUTPUT is ON for your environment by typing the following at the SQL*Plus prompt
    SQL > show serveroutput
    serveroutput ON SIZE 1000000 FORMAT WRAPPEDIf it's OFF like shown below:
    SQL > show serveroutput
    serveroutput OFFThen all you have to do to enable it is:
    SQL > set serveroutput onHope this helps!

  • How do you generate an executable in LabVIEW 8.6?

    How do you  generate an executable in LabVIEW 8.6?  A point to a web site would be helpful.
    Thanks in advance.

    In version 8.0 and above you must create a LV project first.  Once
    you have created a project you can right click on build specifications
    located at the bottom of the project window.  Select
    new>>application.  This will allow you to create the exe.  If you
    want to create an installer then you must follow the same process. 
    They are now separate. 
    To find more information goto
    the help menu in a LV window and select "search the LabVIEW help"  When
    the window pops up select the index tab and type the following:
    "building, applications (how-to)"  This should give you the information
    you need.
     Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • How to use 4GB RAM on Windows 2000

    Hi,
    We use a third party application that parses weblogs and generates statistics.
    The application gives OutOfMemory exception when the weblogs are hugs.
    I am wondering if doing "editbin.exe /LARGEADDRESSAWARE java.exe" is going to help.
    I have 4GB of physical RAM and I have /3GB in boot.ini in Windows 2000 Advanced Server.
    Thanks,
    Anurag.

    How to use 4GB RAM on Windows 2000You are never going to use 4g on a windows box. The maximum addressable space is 4g. Normally the OS reserves 2g. Which means the maximum addressable space for an application is 2g.
    It is supposed to be possible to increase the addressable space to 3 gig. And also increase the JVM space. However, there are risks. The following thread suggests a way to do this
    http://forum.java.sun.com/thread.jsp?forum=37&thread=201718

  • Is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    No, you must install Windows to run Windows software. You do not need to use Boot Camp (yes, it's free because it comes with OS X.)
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How can I generate random password

    Hello...
    I use oracle 10g for windows,,,I have an employee table , there are a lot of colunms , their names are employee_name , employee_id ,employee_pass .....
    employee_pass colunm is empty
    I want to generate random password for employee_pass colunm
    How can I generate random password for employee_pass colunm
    thanks
    omer faruk akyuzlu
    in Turkey

    SQL>  exec dbms_random.seed(to_char(sysdate, 'sssss'))
    PL/SQL procedure successfully completed.
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    4YT1H150
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    WIA3QCIP
    SQL> Please be aware that storing the actual passwords in a the EMPLOYEES table is a very bad idea. Oracle has a pretty good password implementation. It's not perfect but it's a darn site better than hand-rolling our own.
    Cheers, APC

  • How can I consume a c# windows runtime component in a WRL (C++) class?

    I would like to instantiate a class of a C# windows runtime project, from a WRL project.
    In order to make the C# class I have created a WRL project to generate an interface for it to implement. This has worked, but I would rather do it all in the one C# project. I don't know how to do this, and I also don't know how to finally consume the C#
    project (and the resulting .winmd file) from a Wrl project. 

    You're right; I'll post back here.
    Edit: I asked over here:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/53a77d09-01b1-4039-8ad3-207b47b08775/how-can-i-consume-a-c-windows-runtime-component-in-a-wrl-c-class?forum=winappswithnativecode#53a77d09-01b1-4039-8ad3-207b47b08775

  • How to html edit/ enter browser-window-title

    how to html edit/ enter browser-window-title?
    harpo

    I think this is what you mean any way hope it helps.
    open the .html file in text edit for the page you want to change. then look for
    <title>whatever your title is</title>
    and just change the text whatever your title is for whatever you want. the line of code is located at the top of the page under the line that reads
    <meta name="Generator" content="iWeb 1.1.2" />
    not sure if this was the answer to your question but i hope its helped.
    steve

  • How Do I Use One PC (Windows) To Run iCloud Photo Stream for Two Users?

    How Do I Use One PC (Windows) To Run iCloud Photo Stream for Two Users? I and my wife have two Iphones (iOS 6.1.4) and we want to have use 2 iCloud accounts for one PC.

    Disregard the question. The solution has nothing to do with any "Firefox bug". Turns out that my session wasn't being managed properly. Or rather, I was accidentally deleting other users' information when new users logged in. So if I had user 1 and user 2, and user 2 logged in after user 1, some of user 1's information would be deleted, resulting in the errors.
    Oops; sorry about the false alarm. :)
    (Was hoping to retract the question, but it looks like others have a similar problem.)

  • How do I install Bootcamp on Windows 7.

    I have just installed Windows 7 on my Mac Mini and now I want to switch back to the Mac OS. When I hold down Alt while booting up to change OS nothing happens.
    The other option is to install Bootcamp to work with windows. It's already on my mac as I used it to install Windows 7. But there is no option to switch OS with Bootcamp as I can't find it on Windows 7. I've seen tutorials on how to install it with a disk but the Mac mini has no optical drive.
    How do I install Bootcamp on Windows??

    At first I was under the impression i had accidentily deleted the MAC OS but thankfully I haven't. I did a system restore on Windows and when it restarted I held Alt and I could select my OS.
    But I still don't have the shortcut to bootcamp showing in windows. How do you make a bootable USB for Bootcamp?

Maybe you are looking for