Child frame problem

My intention:
I wrote a parent frame. in one of the memuItem action performed, the program
create a child frame and try to get some input. after get the input, in the same action performed code, the parent will update its display pane using the data obtained from the child frame.
my code:
private void jMenuItemAddCActionPerformed(java.awt.event.ActionEvent evt) {
//get the type of the carrier set
String sort = getSort("AddC");
if ((sort != null) && (sort.length() > 0)) { //this is a pop up dialog
CarrierSet aSet = new CarrierSet(); //create an empty set
aSet.setSort(sort);
//let user enter the elements
// UAEnterElements is a subclass of JFrame( I also tried with extending JDialog
// it will add elements to aSet . there is a text field to let user enter stuff
// a NEXT, DONE and CANCEL button
UAEnterElements getCarrierD = new UAEnterElements(this, aSet);
if(getCarrierD.getStatus() == 1){   //if user clicked done in UAEnterElements
algebra.addCarrierSet(aSet);   // algebra is a private member of this
// redisplay the content of _algebra              
jLabelShowAlg.setText(_algebra.toString());
My problem:
my problem:
the parent just goes ahead to update its display pane without the child returning.
So it display old information.
I tried to make the child as a subclass object of JDialog, but still not working.
I wrote _parent.setEnabled(false) in the child constructor. The parent still just go
ahead to display old information.
how should I make the parent wait until the user click DONE and then execute
if(getCarrierD.getStatus() == 1 {
} Can I avoid implementing thread?
Thanks a lot for any help.

Thanks for your help. 2 Duke dollars is in your accout now.
it worked when I wrote a class extending the JDialog class and setModal(true) .
one more question related to this one: what if I still want the child be a frame,
what should I do to make the parent wait till child done?

Similar Messages

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Parent frame handling events from a child frame

    Hello, I'm making an app where i have a frame ("A" frame where A is a JFrame extended class) with a Button, nothing more nothing less, and, inside the mouseclick event I create an instance of another frame ("B" frame, created just by the common sentence B screenB = new B(); where B is a JFrame extended class) that it has, exactly like the parent, a Button but this has a different behavior, when i click the button of the "B" frame (Child) it's supposedly have to change the text of the button in "A" frame (Parent). In other words, an event in a child frame have to make changes in the parent frame, or the parent have to listen to events of the child to make any changes at the moment it happened, or whatever, what you understand the best for this.
    And another thing, in some apps you have a screen to fill some fields, and when you click a button or something, sometimes it appears another screen, let's say it has more fields, but that screen is now on the top of the screens and unless you close it or click a Ok button for say something, it denies you to do anything on the parent screen or another screen, like that are disabled or something. This is a property included in Frames, or it has to be imaginated and coded in java?
    Hope you can help me.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ListeningToChildren implements ActionListener {
        JLabel label;
        JFrame child;
        public void actionPerformed(ActionEvent e) {
            if(child == null)
                launchChild();
            else
                child.toFront();
        private void launchParent() {
            JButton button = new JButton("launch child");
            button.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(button);
            label = new JLabel("count = 0");
            label.setHorizontalAlignment(JLabel.CENTER);
            JFrame f = getFrame("Parent", new Point(200,200));
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel, "First");
            f.getContentPane().add(label);
            f.setVisible(true);
        private void launchChild() {
            JButton toParent = new JButton("talk to parent");
            toParent.addActionListener(listener);
            JButton openDialog = new JButton("open dialog");
            openDialog.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String s = "<html><font color=blue size=8>" +
                               "Hello World</font></html>";
                    JLabel msg = new JLabel(s, JLabel.CENTER);
                    JOptionPane.showMessageDialog(child, msg, "modal dialog",
                                                  JOptionPane.PLAIN_MESSAGE);
            JPanel north = new JPanel();
            north.add(toParent);
            JPanel south = new JPanel();
            south.add(openDialog);
            child = getFrame("Child", new Point(450,200));
            child.addWindowListener(disposer);
            child.getContentPane().add(north, "First");
            child.getContentPane().add(south, "Last");
            child.setVisible(true);
        private JFrame getFrame(String title, Point loc) {
            JFrame f = new JFrame(title);
            f.setSize(200,150);
            f.setLocation(loc);
            return f;
        private ActionListener listener = new ActionListener() {
            int count = 0;
            public void actionPerformed(ActionEvent e) {
                label.setText("count = " + ++count);
        private WindowListener disposer = new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                child.dispose();
                child = null;
        public static void main(String[] args) {
            new ListeningToChildren().launchParent();
    }

  • Running Worldcraft with Wine (or OpenGL in child window problem)

    Hi!, I'm trying to run Worldcraft (the Half life map editing tool) with wine (version 0.9.30), everything works fine except when I choose to display a 3D view on one of the viewports  (3D views uses OpenGL to render the scene), when I do this, the whole window turns black, and flickers (showing some portion of the original window) when I hit the mouse button of move the window.
    This seems to be the Opengl in child window problem that was supposedly fixed in wine 0.9.28, but, well.. it happens    This happens also with Lightwave 8.0.
    Can anyone try and see if this happens to you as well?  or.. well. does anybody knows how to fix it?
    thanks a lot!
    silencer

    Thanks Nephastos, but I'm trying to run Worldcraft, not Warcraft Worldcraft is a world editing tool for Half-Life.
    I uploaded it to my server if anyone would like to try and see if it works for you (as it is an issue that should be solved by now, I think),  you can download it from http://www.darkdesigns.com.ar/worldcraft3.exe
    Thanks a lot
    silencer

  • Premiere Elements 7 - When play my work frame problems occur. codec issues?

    Hello,
    I use Premiere Elements 7 to edit my videos; however, recently I have found that most of the videos I add to my work shows a frame problem every time I play. I am not so familiar with the terms but I will try my best to explain how it happens.
    1. I open a new project
    2. Add a video (usually avi format)
    3. I play the video whitout editing.
    4. I see that after every 5 frames there is a frozen frame (like a dublicate of the 5th frame)
    It results me to cut my video in every 5 frames to get rid of the frozen frame and it takes a lot of time.
    What would be causing that? When I play the video with my media players it shows perfectly but when I add it to Premiere Elements 7 to edit, this is what happens.
    I also see that there are multiple fddshow icons on the right bottom of my screen.
    I assume there is something wrong with the codecs. In that case, what would be the best codec to have in order to edit my videos on PE7?
    What do you suggest I do?
    Thank you in advance.

    Dear Bill,
    I have formated my computer and reinstalled my operating system Vista Home 32 bit. Then I switched from PRE7 to PRE8.
    This is my computer info below;
    CPU Türü QuadCore Intel Core 2 Quad Q9300, 2500 MHz
    4GB RAM
    ATI Radeon HD 3600 Series 512 MB
    I have AVC Core 2.0.0 codec, NVIDIA PureVideo codec for MPEG, K-lite MEga codecs installed as they are-without any configuration.
    Gspot still shows Xvid codec XviD ISO MPEG-4.
    File Length Correct
    Multipart OpenDML AVI (2 parts)
    (69639 frames in first part, 2663 frames follow)
    Interleave: 1 vid frame (40 ms), preload=504
    Audio frames: Split across interleaves
    [JUNK] VirtualDub
    [JUNK] MPEG2 build 24586/release
    [ISFT] VirtualDubMod 1.5.4.1 (build 2178/release)
    [USER] XviD0050
    So I assume Xvid was used for this file. Considering that what would you reccomend me to do in order to view this file and be able to edit on PRE8?

  • Hyperlink and child page problems

    I have had no success in solving my muse problems.  I will restate the problem with more detail in the hope that some knows what I am doing wrong and can recommend solutions.
    The Hyperlink panel element is missing so that I cannot establish a hyperlink. This situation exists with two website I am working on, so I assume that it is a Muse setting which has to be set or re-set, in order to have the hyperlink option available.  I can turn the panel off/on by going to windows>control, but tuning the control back on, it still appears without the hyperlink.
    2. 
    In the plan mode, I created a page with two child pages attached.  The plan view shows the site layout the way it was planned.
    However when I choose Preview or Preview in Browser the children do not appear.  One recommendation I received from this forum was to turn on “show all Pages”, but I cannot find that switch.
    The inability to use these two features has brought me to a screeching halt. 
    The odd part is that the hyperlink worked fine until a couple of days ago, but when I went back  to continue work on the site, hyperlink was not there.
    The Child problem has never worked.

    Hi
    For the last question, the show all pages is located on the top right of the menu bar; (check on top left of the screen that you have indeed selected the menu bar) once menu bar is clicked, the blue circle with white arrow will appear, it is in there you will find MENU TYPE option, select ALL PAGES.
    NOTE when you selct menu bar, top left of the page has to confirm that you have selcted the menu!
    Hope this helps?
    Jilo

  • JPA One-To-Many Parent-Child Mapping Problem

    I am trying to map an existing legacy Oracle schema that involves a base class table and two subclass tables that are related by a one-to-many relationship which is of a parent-child nature.
    The following exception is generated. Can anybody provide a suggestion to fix the problem?
    Exception [EclipseLink-45] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Missing mapping for field [BASE_OBJECT.SAMPLE_ID].
    Descriptor: RelationalDescriptor(domain.example.entity.Sample --> [DatabaseTable(BASE_OBJECT), DatabaseTable(SAMPLE)])
    The schema is as follows:
    CREATE TABLE BASE_OBJECT(
    "BASE_OBJECT_ID" INTEGER PRIMARY KEY NOT NULL,
    "NAME" VARCHAR2(128) NOT NULL,
    "DESCRIPTION" CLOB NOT NULL,
    "BASE_OBJECT_KIND" NUMBER(5,0) NOT NULL );
    CREATE TABLE SAMPLE(
    "SAMPLE_ID" INTEGER PRIMARY KEY NOT NULL,
    "SAMPLE_TEXT" VARCHAR2(128) NOT NULL )
    CREATE TABLE SAMPLE_ITEM(
    "SAMPLE_ITEM_ID" INTEGER PRIMARY KEY NOT NULL,
    "SAMPLE_ID" INTEGER NOT NULL,
    "QUANTITY" INTEGER NOT NULL )
    The entities are related as follows:
    SAMPLE.SAMPLE_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample to the base class
    SAMPLE_ITEM.SAMPLE_ITEM_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample item to the base class
    SAMPLE_ITEM.SAMPLE_ID -> SAMPLE.SAMPLE_ID - The FK that is used to join the sample item to the sample class as a child of the parent.
    SAMPLE is one to many SAMPLE_ITEM
    The entity classes are as follows:
    @Entity
    @Table( name = "BASE_OBJECT" )
    @Inheritance( strategy = InheritanceType.JOINED )
    @DiscriminatorColumn( name = "BASE_KIND", discriminatorType = DiscriminatorType.INTEGER )
    @DiscriminatorValue( "1" )
    public class BaseObject
    extends SoaEntity
    @Id
    @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "BaseObjectIdSeqGen" )
    @SequenceGenerator( name = "BaseObjectIdSeqGen", sequenceName = "BASE_OBJECT_PK_SEQ", allocationSize = 1 )
    @Column( name = "BASE_ID" )
    private long baseObjectId = 0;
    @Entity
    @Table( name = "SAMPLE" )
    @PrimaryKeyJoinColumn( name = "SAMPLE_ID" )
    @AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ID"))
    @DiscriminatorValue( "2" )
    public class Sample
    extends BaseObject
    @OneToMany( cascade = CascadeType.ALL )
    @JoinColumn(name="SAMPLE_ID",referencedColumnName="SAMPLE_ID")
    private List<SampleItem> sampleItem = new LinkedList<SampleItem>();
    @Entity
    @Table( name = "SAMPLE_ITEM" )
    @PrimaryKeyJoinColumn( name = "SAMPLE_ITEM_ID" )
    @AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ITEM_ID"))
    @DiscriminatorValue( "3" )
    public class SampleItem
    extends BaseObject
    @Basic( optional = false )
    @Column( name = "SAMPLE_ID" )
    private long sampleId = 0;
    Edited by: Chris-R on Mar 2, 2010 4:45 PM

    Thanks for the thoroughness. There was a mistake in moving the code over for the forum. The field names are correct throughout the original source code.
    BASE_OBJECT_ID is used throughout.
    I suspect the problem lies in the one-to-many sampleItem(s) relationship that is based upon the subclassed item class. (The relationship is actually "sampleItems" in the real code and somehow got changed in the move over.)
    The problem may lie in the mapping of the attribute override in the child class to the referencing of the item class from the parent side of the relationship in the Sample class.
    I further suspect this may be specific to Eclipselink based upon other postings I've seen on the web that have similar problems...
    Any thoughts?
    Edited by: Chris-R on Mar 3, 2010 9:56 AM

  • Calling javascript from swf (which is source file of frame) - problems with OPERA

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

  • Application Frame problem

    Hi:
    Of late when I use the application frame it is sized so large (not by me) that you cannot see the information at the bottom on the tabbed image and the Panels section.  I have tried to resize it but it extends so low that the cursor cannot reach the control.  I have already tried uninstalling and installing and that worked and I reset it to my desired size but when I came back the next day the problem was back.  I figured finally that it must be a Preference and I restarted and allowed for resetting and again this worked.
    My question is does anyone know what the actual plist is for the Application frame so that I can trash that directly?
    Herman R.

    PECourtejoie wrote:
    The + jellibean is the maximize button (for those that might not see the image)
    Which is also useful to know for those of us who use the Graphite theme (System Preferences > Appearance) and thus see no color and no "jelly beans" anywhere in our Macintosh user interface:

  • JAVA Frame problem

    Hi,
    I hav a problem in JAVA. I have a main frame. This has an internal
    frame as its compnent. The size(height) of internal frame is more
    than the main frame. I want the a to vertically scroll in main frame
    to see the entire internal frame.
         The following code i tried with JSCrollPane gives me only
    horizontall scrolling , so i can see entire width, but no verticall
    scroll to see entire height of internal frame.
         Can u solve this problem.
    Bye,
    Pradeep
    import java.awt.*;
    import javax.swing.*;
    public class Main extends JFrame
         JInternalFrame jInternal;
         JScrollPane jPane;
         Main()
              jInternal = new JInternalFrame();
              jInternal.setSize(200,600);//Internal Frame height bigger
              jPane = new JScrollPane(jInternal);
              getContentPane().add(jPane);
              setSize(200,200);//Frame height smaller
              jInternal.show();
         public static void main(String a[])
              Main m = new Main();
              m.show();     

    Hi.. This might help:
    JScrollPane jPane;
    jPane = new JScrollPane(jInternal,
    ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    U can change those constants so that it shows the scrollbars at all time.. Now they only appear when needed..

  • CS6 Match Frame Problem, Sequence Clip vs Source Clip issue

    Hey folks.
    So, I'm on Windows 7, Premiere Pro CS6.
    I've found an issue with Match Frame (Control F), it seems to be acting inconsistently.  Sometimes when I double click on a clip in my sequence and hit F it brings up the sequence clip, other times it brings up the source clip (in the Source Monitor)
    The problem here is that I'm placing markers on my sequence clips to line them up based on visual cues in the scene.  This work fine for a while, but then, seemingly randomly, I'll double click a sequence clip and when I hit F it brings up the source clip, not the sequence clip.  Now when I place markers they do not show up in the sequence because I'm marking the source clip not the sequence clip.
    Anyone else encounter this?  If needed I can try to capture video of this happening.
    Thanks all,
    ~ James

    Does this mean that it isn't possible to "Reviel in project", or otherwise locate a merged clip in the project window?
    So far "Reveal in project", and "match frame", point to the same subfile of a merged clip... not very useful. What other options are there?
    ... A sad workaround is to type in the name of the merged file in the search frame at the top of the Project pain.
    I guess this one for the feature request list.

  • Imovie11 splitting clips and freeze frame problems

    I am having a problem with imovie11 splitting cips and using the freeze frame function.  When I highlight the clip I want split, it splits a different clip either on the line below it or somewhere else in my project!  Also, my freeze frame function freezes the frame where my playhead is BUT doesn't split the clip...so what I'm left with is the entire clip- then the freeze frame - then the continuation after the freeze frame.  Is there a fix for this??

    Remove any in or out points you have on the timeline. Place the playhead at the frame on the timeline you want to freeze, and then select Modify > Make Freeze Frame, the freeze should appear instantly in the viewer. You can then click the Overwrite button, and the freeze should now be placed on the timeline in the correct place.
    Is this not happening?
    MtD

  • Repeating Frame Problem - please guide

    Dear Gurus,
    I am developing a report in reports 6i. The structure of report is something like this.
    M1
    R1
    f1
    f2
    R2
    M1 is a fixed frame containing all other elements. R1 is repeating frame containing
    2 fields and one repeating frame.
    Now while printing records of R2 overflow to next logical page. that's fine but space of f1 and f2 also get repeated on to next page.
    To give an analogy :-
    Purchase Order Report
    po number - f1
    supplier - f2
    po lines -r2
    next page
    empty space present ( equal to the required fields r1 and r2 )
    po_lines
    Now point is i want the Po lines to continue without the space for fileds for f1 and f2 repeating.
    and yes i kept vertical elasticity for M1,R1 and R2 as variable.
    How can i solve it.
    please guide.
    regards ravi

    Print Object on property it is "First Page". the structure is like
    <code>
    M1
    R1
    f1
    f2
    R2
    </code>
    Problem is when r2 overflows to next page, the space for f1 and f2 is also there on next page. What i want is content of r2 should come at the start of the page rather than at the location where its fixed when it's overflowing to next page.
    regards

  • Repeating frame problem

    Hi,
    I've Matri with group report which prints 'region' level data in Repeating frame (down).
    But, for the Last region of the report, the report is prinitng twice the data. I observed this problem when I have more than one 'region' level data and then for the last region data in that.
    ( means, if there is only one region data, it's not priniting twice, rather priniting fine).
    Please suggest anything on this..urgent a bit..
    Thanks,
    Ratnakar

    Hi,
    Do one thing, place a group frame around repeating frame , sure it must be of size to occupy 3 or more reocrds generated by query. Below this group frame , place additional fields you want to appear below . Remember to keep vertical and horizontal elasticity fixed for this group frame.
    Adinatn Kamode

  • Java exec() child termination problem

    Hello,
    I am trying to use exec() to launch a java application from a Java Swing GUI. The problem is that If any of the applications call System.exit() or Runtime.exit(), all applications will terminate. How do I prevent the GUI from closing when the child closes? I have attached the code I am using for reference.
    Thanks in advance
      public void COmpileAndRun()
            String command = "javac Driver.java";
            try
                Runtime rt = Runtime.getRuntime(); //Process process = new ProcessBuilder(command).start();
                Process proc = rt.exec( command ); //Process process = new ProcessBuilder(command).start();
                InputStream stderr = proc.getErrorStream();
                InputStreamReader isr = new InputStreamReader(stderr);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                System.out.println("<ERROR>");
                while ( (line = br.readLine()) != null)
                    System.out.println(line);
                System.out.println("</ERROR>");
                int exitVal = proc.waitFor();
                System.out.println("Process exitValue: " + exitVal);
                if( exitVal == 0 )
                    command = "java Driver";
                    proc = rt.exec( command );
                    stderr = proc.getErrorStream();
                    isr = new InputStreamReader(stderr);
                    br = new BufferedReader(isr);
                    line = null;
                    System.out.println("<ERROR>");
                    while ( (line = br.readLine()) != null)
                        System.out.println(line);
                    System.out.println("</ERROR>");
                    exitVal = proc.waitFor();
                    System.out.println("Process exitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }

    String[] command =
       "java",
       "-cp",
       "my_class_path", // No extra quoting needed here
       "org.jetel.main.runGraph",
       "param1",
       "param2",
       "param3" // etc
    Process process = Runtime.getRuntime().exec(command);

Maybe you are looking for

  • Rounding off the TR quantity

    Hi, We have this scenario: When a production order is created, 79 kg of material A is needed. In the transfer requirement generated during WM staging, the quantity automatically specified is also 79 kg. We would like this to be rounded up to 100 kg,

  • Flash video loads slow.

    http://www.liquidfirefishing.com/videos.html The video at the top loads way slower than the two at the bottom. Can anyone tell me why? Do I need to post this in the Flash Support forums?

  • Web Service Session Closing

    Hello everyone, In our webservices we are using a dummy user which logs on and requests webservice data as different applications. (ie from .net app) The problem arises here that there are too many sessions are staying open in the system after multip

  • Upload data problem

    Hello eveybody Im facing next problem I have uploaded a CSV file coming from a Excell spreadshet using APEX into my database (Oracle DB 10GR1) all work good in the process. But when I compare data to select rows from table the database not locate the

  • How to display text on last but one page

    how to display text on last but one page