How to make an internal frame a modal frame?

aoa Friends i am trying to make a application using jframe with jdesktoppane and jinternal frame.is there any body who can guide me through that :
how to make a jinternal frame a modal frame so that if a new jinternalform is opened than the previous one could not be accessed and if new one is closed then we can use that form.

http://developer.java.sun.com/developer/JDCTechTips/2001/tt1220.html
This is the example I used approach 2 to simulate a model frame.
rykk

Similar Messages

  • How to make the Internal numbering as Alpha-Numeric

    Hi,
    In the Document Info Record, the Internal numbering is always numeric.
    How to make it Alpha-Numeric?
    Regards,
    Shashi

    Dear Shashidhar,
    Number assignment is derived from Document Type of the DIR. You can customise the Document type settings (DC10) to make the number range as External or Mixed.
    Modify the settings in "Number Assgmt" tab as 2 for only external number assignement and 3 for mixed number assignment.
    Hope this solves your question.
    Regards,
    Sudharshan

  • How to make a link open in another frame in RH 7?

    Hello! In RoboHelp 7 I am doing a prototype for my work group using framesets. We want a navigation pane on the left side of every topic. I have learned how to create framesets and set the left and right frames to different topics. I cannot find information anywhere on how to do one thing. One, how do I set the links in the left navigation frame to open in the right (main) frame? Sounds like a simple thing, but I can't figure out how. Also, is it true that a person cannot see the code to the frameset? I can't find a way to do that, either. Thanks for anyone's help!

    Hi there
    When you created your Frameset you likely gave each frame a name. This part is very important and I'm not sure RoboHelp would even allow you to create the Frameset without naming each frame.
    So when you create your links, you target the Frame by clicking the drop-down and choosing the frame name.
    Click image below for possible larger view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to make different photos come into a frame in a tile-like fashion?

    I've been using Final Cut Pro X for a few months, but mainly have been sticking to the basic stuff. Now, for a video I'm doing, I would like to show 4 or 5 different pictures that dynamically come into the frame in a tile-like fashion.
    I guess the best way to describe this would be: Photo 1 comes in and resides on the top left. Photo 2 comes in and resides on the top right. Photo 3 comes in and resides in the bottom left. Photo 4 comes in and resides in the bottom right. Photo 5 comes in and resides in the middle. (Or if I can't do 5, then just 4 photos).
    The photos are all different (not just a screen tile of one photo).
    I could swear that I learned some sort of technique like this in the Final Cut Pro X book, but I can't remember how in the world to do it.
    Can you guys please give me a jumpstart on this??? This **is** possible in Final Cut Pro X, isn't it? Or will I need to buy some sort of add-on to do this?
    Thank you so much!!!!

    LynnZee wrote:
    This **is** possible in Final Cut Pro X, isn't it? Or will I need to buy some sort of add-on to do this?
    If you want DIY, edit a still into the timeline. Option drag (to duplicate) the clip to the layer immediately above the primary storyline; repeat 3 more times so you have 4 identical clips connected to the original clip on the primary storyline.
    For each clip, select, and resize with the transform function. Reposition as necessary. Either keyframe the moves into the correct position in the frame or keyframe the opacity if you want them to appear sequentially.
    If you want to do it with a plug-in you might look art this or this.
    Russ

  • How to make footage in between position key frames stay in a straight line?

    I used position keyframes to move the footage to the right, in different positions near the right side of the sequence frame (not all the same position), in preparation for a split frame crop effect. Between keyframes the footage jumps back to the original position. I selected all the key frames and did a rightclick and set Temporal and Spatial interpolation to Linear or Bezier - but that doesn't do anything at all. What am I missing?

    Thanks for trying to help me Ann. The temp. & spatial interpolation on all keyframes is Linear. There don't appear to be any hidden keyframes, but I don't see how to zoom more than the default shown here. Where the playhead in this screencap - between the 2 keyframes - is where the motion jumps back. All the position keyframes align the footage to the right. In between keyframes - and not every one - it jumps back to the center. The extra keyframes in the clip were an attempt to keep that from happening but it justs happens in shorter increments now.
    Just curious - is a person able to mark their own answer as correct?

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

  • How to make Internal consignment???

    I define a Storage location on a ship, i want to give stock to this storage location as a consignment stock . So how to make a internal consignment to a Storage location? how to give a consignment stock to a storage location???

    If I understand correctly:
    I think you'll have to do this as a two step process.
    Transfer the stock to the 'Ship' Storage Location e.g. transaction MIGO, movement type 311.
    Transfer the stock to consignment by a reverse e.g. transaction MIGO, Movement Type 412 K (who are you going to specify as Vendor ??).
    Regards,
    Nick

  • How to make a modal frame?

    Hello!
    My problem is quite simple, but I don't know how to make some MODAL frames (JFrame I mean). In my application, the user can open a same frame even if this frame is already opened and that's not really good.
    So, I want the user to close the frame before opening another one.
    Can anyone explain me how to do that?

    Generally your actionListener will be an internal class of your main frame class. Usually an anonymous internal class. That means it can act on variables in the frame (which is the sensible place to keep the flags).
    Something like:
    class Class1 extends JDesktop {
    boolean itsOpen = false;
    openAction.setActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        if(!itsOpen) {
           itsOpen = true;
           openAction.setEnabled(false);
           MyInternalFrame newFrame = new MyInternalFrame(Class1.this, ....);
           add(newFrame);
       });You do need some way for the internal frame to act on the variables in the main frame. There are various ways of achieving this.
    If we're dealing with a genuine InternalFrame there's a special InternalFrameListener (?) which allows your main frame to listen for the window closing. You can use this instead of hacking the dispose method.
    If you're main frame is a JDeskTop then you can use getDesktop() in your internal frame to access it, then cast the result to the real class of your desktop.
    Our you can simply add a pointer to your class1 to the contructor of your internal frame class.
    You could even get clever and create your own listener system.

  • How to make a frame modal?

    Hei guyz,
    I'm trying to call a frame from another frame (which should basically act like a dialog, but is not a dialog), how can i make this 'child' frame modal, i.e. once im done with the 'child' frame, the focus has to go back to the 'parent' frame and no other component could be opened while a user is working on the 'child' frame.
    Can anyone let me know, how this is possible and is there any other better approach (other than making the child frame, a dialog)?
    Thanks in advance.

    and is there any other better approach How can we suggest a better approach when we don't know why you rejected a modal dialog.
    Based on your requirement:
    once im done with the 'child' frame, the focus has to go back to the 'parent' frame and no other component could be opened while a user is working on the 'child' frame.
    it would appear to me that using an modal dialog is the obvious choice.
    Otherwise I suggest you search the forum. Keywords like "modal jframe" would be a good place to start.

  • How to make Internal Frame on Focus

    Hi All,
    i have an application where in i have a JInternalFrame within in A JFrame.
    Queries:
    1.I want to make JInternalFrame focused,(without clicking on any portoion of Internal Frame) once i run the apllication(java Demo)
    2.i want to fix the JInternal Frame.(Non movable)
    //Demo.java
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;     
    import javax.swing.event.*;     
    import javax.swing.border.*;          
    public class Demo extends JFrame implements ActionListener {
    static JDesktopPane desk;
    String labelstr="Test ";
    JPanel contentpane;
    JLabel titlelabel;
    public Demo() {
              setTitle("Swing Test");
                    contentpane=(JPanel)getContentPane();
                    contentpane.setLayout(new BorderLayout());
                    desk=new JDesktopPane();     
                    desk.setBackground(Color.gray);
                    contentpane.add("Center",desk);
                    titlelabel=new JLabel(labelstr);
                    titlelabel.setForeground(Color.black);
                    titlelabel.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    getContentPane().add(titlelabel,BorderLayout.SOUTH);            
              public void actionPerformed(ActionEvent e) {
                 public static void main(String args[]) {     
                    try  {
                      UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                      //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                     }catch(Exception e) {
                                               System.out.println("Error loading L&F:"+e);     
                                               JOptionPane.showMessageDialog(null,e);
                    JFrame frame=new Demo();
                    frame.setSize(800,600);
                    frame.setVisible(true);
                      InternalFr jif=new InternalFr();
                      jif.start();
                    frame.addWindowListener(new CloseWindow());
           class CloseWindow extends WindowAdapter {
             public void windowClosing(WindowEvent we) {
                 Window w=we.getWindow();
                 w.dispose();
                 System.exit(0);
          }//InternalFr.java
    import java.io.*;
         import java.net.*;
         import java.lang.*;
         import java.awt.*;
         import java.awt.event.*;
         import javax.swing.*;
         import javax.swing.border.*;
         import javax.swing.text.*;
         public class InternalFr extends JInternalFrame {
             JLabel jlName, jlPass;
             static JTextField jtName,jtPass;
                 JButton submit,cancel;
            public InternalFr() {  
              super( "InternalFr");
              Icon img=new ImageIcon("Neticon.gif");
              setFrameIcon(img);
              JPanel contentpane=(JPanel)getContentPane();
               contentpane.setLayout(null);
              JPanel mainpanel=new JPanel();
              mainpanel.setLayout(null);
              mainpanel.setBounds(0,0,290,180);
              jlName=new JLabel("Username   :");
              jlName.setBounds(20,20,180,20);
              jlName.setForeground(Color.black);
              jtName=new JTextField();
              jtName.setBounds(150,20,100,20);
              mainpanel.add(jtName);
              mainpanel.add(jlName);
              jlPass=new JLabel("Password   :");
              jlPass.setBounds(20,50,180,20);
              jlPass.setForeground(Color.black);
              jtPass=new JTextField();
              jtPass.setBounds(150,50,100,20);
              mainpanel.add(jlPass);
              mainpanel.add(jtPass);
              JPanel buttonpanel=new JPanel();
              buttonpanel.setLayout(null);
              buttonpanel.setBounds(30,90,215,30);
              buttonpanel.setBorder(new EtchedBorder(EtchedBorder.RAISED));
              submit=new JButton("Submit");
              submit.setMnemonic('O');
              submit.setBounds(5,5,100,20);
              buttonpanel.add(submit);
              submit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                 if(ae.getSource()==submit)  {
            cancel=new JButton("Cancel");
              cancel.setMnemonic('C');
              cancel.setBounds(110,5,100,20);
              buttonpanel.add(cancel);
              cancel.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent ae) {
                      Object obj=ae.getSource();
                     if(obj==cancel){
                          System.exit(0);
           contentpane.add(buttonpanel);
           contentpane.add(mainpanel);
        public void start()  {
             InternalFr at=new InternalFr();
             at.setSize(290,180);
            at.setLocation(220,150);
            at.setVisible(true);
            Demo.desk.add(at);
      }Thanks
    Mohan

    To give focus to an internal frame, do the following (where iFrame is your internal frame):try {
        iFrame.setIcon( false );  // In case it is minimized
        iFrame.moveToFront();     // Make sure it is in front
        iFrame.requestFocus();    // Ask for focus
        iFrame.setSelected( true );  // Select it
    } catch( java.beans.PropertyVetoException pve ) {
    }

  • How to make another modal popup window in a modal popup window?

    how to make another modal popup window in a modal popup window?
    two modal windows must be made by inheritance of JDialog.

    the jdialog has constructors where you can set another jdialog as owner. (the same as frame)
    Visit our german java forum at http://www.java-forum.org/de
    An english version will be released soon at http://www.java-forum.org/en

  • Modal frames : how ?

    Hi there,
    I'm developing an application using the MDI interface so I'm using JInternalFrames.
    So basically I have an initial splash screen that tries
    to connect to the database and if it succeeds, the
    "complete" mdi is shown to the user.
    But if the server is down, I'd like to show a frame
    with an error message to let the user know the
    server is down. I created a JInternalFrame that is
    supposed to appear right after the application finds out
    the server is down but I can't make it get the focus
    and stay on the screen as a modal frame.
    It shows itself but disappears (goes to the background) as the main window
    builds it's toolbars and menus and stuff.
    How can I do that so that this frame gets all the user's
    attention ?
    Thanks a lot,
    Wagner

    this.addWindowListener(new java.awt.event.WindowAdapter() {
                   public void windowDeactivated(WindowEvent e) {
                                  if(bKeepOnTop)//keep this window on top.
                   this.toFront();
              });

  • How to Make my Macbook Pro's internal HDD external, when I get a SSD?

    Hey, I know there are other posts on what enclosure you can use and if it's a possibility, but I haven't seen any that tell me how I get OS X on the SSD without a disc? Can I download the installer on a flash drive somehow? Also, I am wondering if this really is a good idea, using my Macbook Pro's HDD for a backup HDD, instead of buying one? I have no use for it anyway, if and when I get a new SSD. BTW, the HDD is the upgraded factory 500gb 7200rpm. Also, do you think it's smarter to have a bigger backup drive than internal drive? In other words, I would like to get a 1TB Samsung 850 Pro SSD, and my current HDD is only 500GB.... I am a musician and need a lot of storage for musical purposes. I use Final Cut Pro, Logic Pro X, Ableton Live 9, Office, and Photoshop.... My Macbook Pro is a Late 2011 Macbook Pro 15.4' 2.2ghz quad core i7 8gb RAM. Oh yeah and a mother thing is, I think I should get an enclosure that has a thunderbolt port with usb, what are your thoughts?

    How to Make my Macbook Pro's internal HDD external, when I get a SSD?
    Get an externel enclosure at the same time.
    You can order from OWC
    http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Put the SSD in the externel enclosure and use something like Carbon Copy Cloner,  to clone the internal drive and all it content to the SSD.  Then swap them out.
    Always good to have more than one backup.

  • How do I make the internal mic on my macbook air sustain better when recording on garage band? I have been recording an acoustic guitar and listening back, the mic seems to pick it up well naturally for 1 or 2 seconds then dramatically drop out.

    How do I make the internal mic on my macbook air sustain better when recording on garage band? I have been recording an acoustic guitar and listening back, the mic seems to pick it up well naturally for 1 or 2 seconds then dramatically drop out.

    I realised that you just need to go to System Preferences > Sound > Input > and uncheck 'Use ambient noise reduction'. mmm answered my own question.

  • How to make a row as selected in output internal table in oops ALV

    Hi All,
    I have ALV grid output using oops ALV concept, in my output i have a checkbox as first column when i select this checkbox and press a push button 'Print' which is there above ALV grid that particular line in output table should get selected and i need to code some logic for printing selected row.
    how to make the particluar row in the output internal table to be selected and where to write the logic for print once it is pressed?
    Thanks in advance
    Srilakshmi.

    but the checkbox is not getting set in internal table when i select some checkboxes.
    can anybody explain y the checkbox in internal table not set?
    Hi Srilakshmi,
    As explained by Uwe, when we change a field ( say check box ) in ALV grid, the view (frontend) changes (showing the tick mark) but the changed data ( normally ) is not transfered to the backend.
    We can initiate this data transfer by just registering the cl_gui_alv_grid=>mc_evt_modified  edit event
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    Now as soon as we check a checkbox, the data_changed event is triggered.
    This initiates data transfer to the backend and the checkbox field in internal table is updated.
    check the below code for example.
    DATA: go_cont            TYPE REF TO cl_gui_custom_container,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE TABLE OF bus_loca_demo WITH HEADER LINE.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      SET TITLEBAR  '001'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'PRINT'.
          BREAK-POINT.
      ENDCASE.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_cont IS NOT BOUND.
      CREATE OBJECT go_cont
        EXPORTING
          container_name = 'CUSTOM'.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_cont.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      DO 10 TIMES.
        gt_outtab-creation_partner = sy-index.
        gt_outtab-date_field       = sy-datum.
        APPEND gt_outtab.
      ENDDO.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'BUS_LOCA_DEMO'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'CHECKBOX'.
            ls_fcat-checkbox = 'X'.
            ls_fcat-edit     = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'ENTER_FIELD' OR 'DBLCLICK_FIELD'.
            ls_fcat-no_out  = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    Cheers,
    Jose.

Maybe you are looking for

  • How to move data in the table to different database ?

    I'm currently having some problem with moving some of my data from devlopment db to production db. Currently i'm having 2 dev. db and i would like to combine the data in the table into 1 prod. db. Can anyone pls tell me, is it possible to do so. Plea

  • Calling the package dynamically inside a procedure

    HI i have table which contains contains package name, procedurename,input parameters and output parameters as columns like below. Table name is PKG_META_DATA. package_name Procedure_name input parameters output parameters pkg1 prc1 i_location,i_type

  • Serious crash when clicking on "play"

    Hi there, after making many changes to my presentation, and - as usual - just before i remembered to hit CMD-S, i decided to check the presentation and trustfully clicked on the play button. BANG! Total crash, reset, reboot. Welcome to OS X. Now i kn

  • Outlook calendar invitations not showing in email

    I use Outlook with OSX10.9.5. When I receive calendar invites, they don't come up in my email, so unless I scroll through my calendar looking for them, I don't know I've been invited. I used to get emails but suddenly they've stopped.  I've gone thro

  • Problem in shut down

    i have recently bought leveno 3000 G410 2049-5AQ. i have installed vista os in it. now sometimes when i shut down it it hangs...  plzz help ...  u can reply on by email also   [email protected]