Counting Tags - Proper Method

QUESTION: Am I using proper method in my development of
automatically tallied footnotes?
BACKGROUND
While exploring on the W3 CSS 2.1 website I stumbled on the
contents property of the :before and :after pseudo tags. This led
me to the counter( ) function, the counter-reset property, and the
counter-increment property that led in turn to my creation of
automated footnotes for a single webpage (see Sample Page below).
Although very pleased with what I developed, it is probably far
from original, and I am hoping that someone with more extensive
background in the use of counters could shed some light on how my
future might look using the method I have employed for the creation
of footnotes.
Both the HTML and CSS code for my sample page validate using
the FireFox validation tool. All of the CSS code has been placed in
the document's <head> tag.
THE FUTURE
What I envision as my future in this regard is the use of my
counter to tally footnotes across serially linked webpages. Once
this is achieved, I am hoping to tally and label figures, graphs,
tables, pages, section titles and other vital document information
across the same set of serially linked webpages with a different
set of similarly created counting tags.
SAMPLE PAGE
http://homepage.mac.com/moogoonghwa/practice/CSS/countingTags2.html
In addition to commenting on the way I have created footnotes
in the sample document, any online reading suggestions in regard to
my envisioned future would also be greatly appreciated.
Roddy

Hello,
Counter-reset, Counter-increment, :before and :after aren't
supported by IE
currently.
However, they are listed as one of the CSS Compliance
upgrades in IE8 Beta
2.
In browsers that support it, the method is fine.
Take care,
Tim
"kiusau" <[email protected]> wrote in
message
news:gpkd10$36b$[email protected]..
>
QUESTION: Am I using proper method in my development of
> automatically
> tallied footnotes?
>
>
BACKGROUND
> While exploring on the W3 CSS 2.1 website I stumbled on
the contents
> property
> of the :before and :after pseudo tags. This led me to
the counter( )
> function,
> the counter-reset property, and the counter-increment
property that led in
> turn
> to my creation of automated footnotes for a single
webpage (see Sample
> Page
> below). Although very pleased with what I developed, it
is probably far
> from
> original, and I am hoping that someone with more
extensive background in
> the
> use of counters could shed some light on how my future
might look using
> the
> method I have employed for the creation of footnotes.
>
> Both the HTML and CSS code for my sample page validate
using the FireFox
> validation tool. All of the CSS code has been placed in
the document's
> <head>
> tag.
>
>
THE FUTURE
> What I envision as my future in this regard is the use
of my counter to
> tally
> footnotes across serially linked webpages. Once this is
achieved, I am
> hoping
> to tally and label figures, graphs, tables, pages,
section titles and
> other
> vital document information across the same set of
serially linked webpages
> with
> a different set of similarly created counting tags.
>
>
SAMPLE PAGE
>
http://homepage.mac.com/moogoonghwa/practice/CSS/countingTags2.html
>
> In addition to commenting on the way I have created
footnotes in the
> sample
> document, any online reading suggestions in regard to my
envisioned future
> would also be greatly appreciated.
>
> Roddy
>

Similar Messages

  • Tag.setParent() method call

    For simple tags implementing the SimpleTag interface, the setParent() method is only called when a tag has an enclosing parent.
    Is this also the case for classic tags? In other words, is the Tag.setParent() method only called when a tag has an enclosing parent or is the method always called?
    Cheers!!

    For simple tags implementing the SimpleTag interface, the setParent() method is only called when a tag has an enclosing parent.
    Is this also the case for classic tags? In other words, is the Tag.setParent() method only called when a tag has an enclosing parent or is the method always called?
    Cheers!!

  • Proper method for interactive video

    Hi.  It's been a while since I've used Flash/Actionscript, and I've been having trouble figuring out the proper way to do this.  I'm hoping someone here can outline the proper methods.
    Basically, I'm creating a Flash project where it will play a video, then at a certain point, stop and display some buttons, and then go to the appropriate video based on what button was pressed.  Sort of a choose your own adventure type of thing.
    Without knowing the current/ideal way of doing it, how I tried it was by having the first video (embedded into the project) on one layer, and at the end of that video, I have a stop()  on another (script) layer (on the last frame of the video in the timeline), and I had the buttons (which appear on top of the video) on another layer at that same frame.  So, in theory, it plays the video, hits the last frame, stops the timeline, and waits for one of the buttons to be clicked.  Each button triggers and gotoAndPlay(), which takes the timeline to one of the other two videos that are located one after the other, after the first video, on the same (video) layer.
    Problem is, I have a bit of a catch-22...  I was aware that there would be sync issues between the video and it's audio (addressed by doing the audio as Sync or something in the audio properties)... however, I was suprised to see that the video does not maintain sync with the other layers (script).   So, what happens is that it plays the video, but SEEMS to play it faster than the script layer, so it reaches the end of the video before reaching the (identical frame) location of the actionscript.  As a result, the video loops, and the stop() is hit sometime during the start of the second playing of the video.  The buttons act similar, appearing sometime AFTER the point in the video where they should.
    I had embedded the video with the assumption that this would give me hard sync between it and the timeline, since it's physically there in the timeline, and you can see the frame at which it ends... and I thought then putting a stop() on that frame (but on a different layer), would guarantee that the stop code gets hit at the same time the end of the video was.
    I've tried a number of things, like putting the actionscript code on the frame after the video on the same layer, figuring a single layer can't go out of sync with itself... but that didn't work either.
    Looking into it, I saw that one option was to not embed the video, but to have it reference an external file (which, supposedly, would result in no sync issues).  But, in doing that, I'm not aware of how the rest of the timeline would know when the video has reached certain spots of the video.
    I'm sure the proper method is entirely different from what I'm doing, but I'm not familiar with other methods.  I'm hoping someone can outline the proper procedures (in as much detail as possible, since I probably won't know about much of what you are explaining).
    Keep in mind, again that this is basically what I want to do:
    -Play video 1
    -Stop timeline, display buttons, wait for response
    -Based on which button is pressed, jump in the timeline to video 2 or 3 (...I'm assuming all the vids will be on one layer, one after the other, with a label at the start of each one)
    Hope you can help.  Thanks.

    Hi, kglad.  Conceptually, I understand, but I'm totally new to most of these things.  I've worked with actionscript and flash in general, but am still very green when it comes to things like event listeners and some of the more technical coding.
    I've been frustrated with the tutorial vids I've been finding, as they are often very generic (...5 minutes of video, only to show you how to load the component onto the stage, then point to a video).  But, I did finally find one that seemed to address more detail.  It's the ActionScript 3 Video Basics tutorial on gotoandlearn.com.  All very techy code, which goes right over my head, but at least it's seemingly usable and relevant.  I just don't like using coding/methods I don't fully understand, as then you are helpless if something goes wrong.
    In answer to your question, what I'm after (in more detail) is this:
    -A video plays (Intro video)
    -After that video, a looping video plays, with buttons (Scene selection thumbnails) on top of it (Selection menu with looping background)
    -Clicking on one of the scene thumbnails then goes to the scene player section
    -Scene plays, and when it reaches the end of the clip, two buttons appear, and it waits (parked on last frame of the video via a stop() command)
    -Pressing button A jumps the timeline ahead 2 frames to the A video (which is located right after the initial scene video, right after the stop()), and that video plays, and stops at the end (via another stop() command.
    -Pressing button B jumps the timeline ahead many frames (past that second A video, over to the B video, which is the third clip on the video timeline, consisting of the initial scene, the A clip, and now the B clip), plays that and stops.
    Now, I am 90% sure that the way I am currently doing this is inefficient, obsolete, and to anyone half-decent at Flash authoring, completely wrong... but it's the only way I currently know.
    I've done the above like this:
    Timeline has the first (Intro) video embedded, then the second (Scene Selection loop), with a label ('Loop') at the first frame, and a gotoAndPlay('Loop') on the last, with the graphics and code for the scene selection thumbnail buttons occupying the duration/span of that loop clip, on a different layer.
    I have a MovieScreen movieclip, which has a series of one frame movieclips within it.  Each of those movieclips is the full video of a scene.  Think of the MovieScreen mc as a sort of Jukebox, containing a series of 1 frame 'records' (those being a movieclip that contains the video of each scene).  Pressing one of the thumbnail Scene buttons in the Scene Selection simply moves the MovieScreen movieclip timeline to the appropriate 'record' (frame containing the appropriate movieclip that contains the scene you selected), and jumps the main timeline (via a gotoAndPlay()) out of that Scene Selection loop, to the next frame after it, which is a 'Selection made' clip (an exit animation), which plays, and then parks on the 'Play Scene' section.
    The Play Scene frame of the main timeline simplly contains the Moviescreen movieclip, which (at this point) has had its own timeline jumped to the appropriate 'record' (movieclip within it), and that movieclip plays.  This is my (probably laughably incorrect, yet functioning) method to have a global 'movie player' frame in the main timeline, but have it able to play any of the available videos, rather than having a moviescreen for each scene.
    Certainly, I'd assume there is a far better way to do this, most likely with pure actionscript, where the scenes are called up, and things are dynamically generated... but, again, I don't know how to do that sort of thing.
    My first attempt had me embedding the videos directly into the timeline, which had the benefit of having the clip literally there on the timelines, taking up the literal amount of frames, and being visible during the timeline editing.  Problem is, it wouldn't play in sync with the rest of the layers (which was a real surprise, as I assumed that the whole point of embedding it would be to lock it to the timeline).  So, my codes/graphics that were placed on other frames at the end of the video clip's timeline layer didn't trigger in sync with the end of the clip (...which still puzzles me).
    My second attempt had the videos being called on as external clips, but that also had its share of problems, plus without the clips physically on the timeline, I had no way to know when the clip ended (...assuming I was to have the actionscript/graphics on a particular frame in the timeline... which I suspect now is wrong thinking).
    My third attempt used the FLV component.  First of all, the videos where about half the size that they should have been, plus where positioned half off the screen.  Today, I managed to figure out how to remedy that, so that works.  However, I soon realized that when placed on the stage, the resulting element on the timeline was an infinite duration, and not representitive of the duration of the clip, like an embedded vid would be... So, again, I had the problem of how to know when the clip ended, and where to place the script/graphics in the timeline.
    Researching a bit more today, I see that you can read metadata from a clip, which may be relevant to triggering a stop() or a loop back or a gotoAndPlay()...although I'm not entirely sure how it would all work.  I couldn't see an obvious way to loop a clip (from the FLV Playback properties).  So, even though I suspect this is the proper way to be doing this, I'm completely lost on how to utilize it.
    As well, I've been reading that the current version of the FLV Playback component has an issue with seamless looping... in that it supposedly can't.  So, that's yet another problem.
    Sorry for the novel, but I wanted to give everyone the full info on what I'm doing and what troubles I'm facing here.  Sorry too for being green on this.  I'd be happy to watch/read some tutorials on this, but really haven't found anything that either addresses things more than just 'load it onto the stage and select the video location', or ones that are the opposite end of the spectrum, and are way over my head.

  • Proper Method for closing a VI?

    Hi there,
    I am a very inexperienced labview user, so this question may be a walk in the park for you pros. What is the proper method for closing a VI? I want a particular VI to close upon a certain occurence. When I use a property node to close the front panel, then an invoke node to abort the VI with a static reference. I sometimes get a message dialog in the upper left corner of the screen that says "Resetting VI: [Vi's name].vi" at which point labview freezes, and must be closed externally from the Windows task manager. I know that using the "abort" can leave certain references open, so I close these references upon completion of every cycle... What is the proper method of closing a VI?
    Thanks a bunch,
    Ryan

    Hi Ryan,
    The correct method for closing your VI is dependent on how you have chosen to
    open it.  Like Jhoskins, I think the LabVIEW community will better be able
    to assist you if you post what you've already tried.
    If you have tried to dynamically load your VI using a Call by Reference Node,
    you will need to use an Open VI Reference and a Close Reference.  Please
    take a look at the Dynamic Load Example from the NI Example Finder.  You
    can find this by searching for VI Server in the Example Finder. 
    I have attached a figure that shows this Open, Run, Close paradigm in the
    Dynamic Load Example.
    Message Edited by cphuong on 04-17-2007 10:43 AM
    Regards,
    Ching P.
    DAQ and Academic Hardware R&D
    National Instruments
    Attachments:
    Open_Run_Close.JPG ‏88 KB

  • How to count number of methods in a java file

    Is there any way to know the count of methods or variables (instance) in a java file or at least in main() of a java file?
    If yes , can we know about their access modifiers?

    raj440 wrote:
    Is there any way to know the count of methods or variables (instance) in a java file or at least in main() of a java file?
    If yes , can we know about their access modifiers? It might be easier to use Reflection to interrogate the class itself instead of the source.
    A "variables (instance)" is somewhat of an oxymoron.

  • Slected row count--Is any methods there in SDK

    Hi Friend
    Is there any method to find how many rows selected in a matrix.
    Edited by: billu on May 28, 2008 1:49 PM

    Hallo Billu,
    there's no method - you have to write your own and use
    IsRowSelected(RowNum)
    to run through all rows and count them.
    or you make a global counter where you count +1 when you select a row and -1 when you unselect - that would be faster.
    EDIT:
    M.S.P was faster
    regards
    David
    Edited by: David Nussböck on May 28, 2008 1:53 PM

  • Javadoc tag within method body

    I'm not sure if this can be done, or if it makes sense, but can I define a javadoc tag that I can place within a method body? I want to use this for documenting my junit tests as follows...
    * This method tests TestClass::methodA for
    * a variety of input parameters.
    public void testMethodA()
      try
        * @testCaseName Test passing a null pointer
        testClassInstance.methodA(null);
        * @testCaseName Test passing Integer.MAX_VALUE
        testClassInstance.methodA(Integer.MAX_VALUE);
        * @testCaseName Test passing Integer.MINIMUM_VALUE
        testClassInstance.methodA(Integer.MINIMUM_VALUE);
      catch (Exception e)
        fail();

    because they want to Javadoc it! Well, thanks to Yogee's link, you can see you can't...
    A doc comment is written in HTML and must precede a class, field, constructor or method declaration. It is made up of two parts -- a description followed by block tags. In this example, the block tags are @param, @return, and @see. So use comments....

  • How to load multiple HTML5 canvas on the same page (the proper method)

    Hi,
    I've been struggling to load multiple canvas animations on the same page. At the beggining I thought that exporting the movies with different namespaces and reloading the libraries in a sequential flow might work, but it doesn't. It always loads just the last animation loaded. More info here: Coding challenge: what am I doing wrong?
    Here is a sample of what I'm doing:
    1st: Publish two flash movies with custom namespaces for "lib" set in the "publish settings": "libFirst" and "libSecond".
    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and the other one called "secondCanvas"
    3rd: Edit the javascript like this:
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
            </script>
    <body onload="initFirstAnimation(); initSecondAnimation();">
    Could someone please reply with the best practice on how to do this? If possible, without the need to reload all the libraries...
    If I only need to show one flash movie at a time, would it be more efficient to cut & paste the canvas tag using jQuery in the DOM and reloading a different lib on it?
    Many thanks!
    #flash #reborn

    I was able to fix it. At the end, it was easier than I thought. Just have to publish using a different "lib" namespace for each movie, load all the scripts at the end of the <body> and then add the following to the onload or ready events:
    $(document).ready(function () {
            var canvas, stage, exportRoot;
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);

  • What is the proper method for cleaning up EventWaitHandle?

    Hi all,
    I'm working on inter-process communication between applications running on the same machine. More specifically I have a primary application that is connected to multiple industrial machines collecting data from each.
    I want to create secondary applications that consume this data. I intend on using MemoryMappedFile to share the information. I've tested the MMF part and it works fine.
    I'm at the point where I want to notify the client applications when new data is available by using an EventWaitHandle. I create the handle as follows.
    handle = new EventWaitHandle(false, EventResetMode.AutoReset, ClientName);
    In the client application I use WaitOne inside a thread for the event notification. This too works well.
    private void MonitorForSignal()
    running = true;
    bool signaled;
    while (running)
    signaled = handle.WaitOne();
    if (signaled)
    if (!handle.SafeWaitHandle.IsClosed)
    //Do something
    I create the thread as follows:
    monitor = new Thread(MonitorForSignal);
    monitor.IsBackground = true;
    running = true;
    monitor.Start();
    My concern is that I may be creating an orphaned thread or a memory leak when I close the client application. So I implemented IDisposable in my client class and do the following.
    protected virtual void Dispose(bool disposing)
    if (disposing)
    // free managed resources
    // free native resources here if there are any
    running = false;
    handle.Close();
    handle.Dispose();
    monitor.Abort();
    I believe this does indeed free the resources, but I've read that Thread.Abort is "bad". Before I implemented IDisposable I did some testing in a couple of WinForm applications, one acting as the host and one as the client. I noticed that I could
    close the client and subsequently Set the EventWaitHandle in the host application and this line of code in the client would fire in the debugger.
    signaled = handle.WaitOne();
    This made me worry that I wasn't properly cleaning up my thread objects.
    Below is the entire client for reference. What I'm really asking is how do I properly clean up the MonitorForSignal thread and the EventWaitHandle in the client?
    public class ClientA : IDisposable
    bool running;
    string clientName;
    EventWaitHandle handle;
    Thread monitor;
    private void MonitorForSignal()
    running = true;
    bool signaled;
    while (running)
    signaled = handle.WaitOne();
    if (signaled)
    if (!handle.SafeWaitHandle.IsClosed)
    //Do something
    private void ProcessData()
    //Do Something
    public ClientA(string ClientName)
    if (ClientName == null || ClientName == string.Empty)
    throw new ArgumentException("Cannot be null or empty.", "ClientName");
    clientName = ClientName;
    handle = new EventWaitHandle(false, EventResetMode.AutoReset, ClientName);
    monitor = new Thread(MonitorForSignal);
    monitor.IsBackground = true;
    running = true;
    monitor.Start();
    #region IDispose
    ~ClientA()
    Dispose(false);
    public void Dispose()
    Dispose(true);
    GC.SuppressFinalize(this);
    protected virtual void Dispose(bool disposing)
    if (disposing)
    // free managed resources
    // free native resources here if there are any
    running = false;
    handle.Close();
    handle.Dispose();
    monitor.Abort();
    #endregion
    Regards,

    Hi Michael,
    Does this code cause the thread to spin?
    while (!handle.WaitOne())
    //TODO: Do work
    Thread.Sleep(1000);
    I was hoping not to spin thus the EventWaitHandle. As for the named handle, I am building multiple applications that need to have inter-process communication, all running on the same machine.
    I think I can update my class to use your recommendation for the dispose method, specifically using handle.Set
    However, I would update the MonitorForSignal as follows:
    bool _closing = false;
    private void MonitorForSignal()
    running = true;
    bool signaled;
    while (running)
    signaled = handle.WaitOne();
    if (signaled && !_closing )
    if (!handle.SafeWaitHandle.IsClosed)
    if (NewData != null)
    NewData();
    And the dispose as follows:
    protected virtual void Dispose(bool disposing)
    if (disposing && handle!=null)
    running = false;
    _closing = true;
    handle.Set();
    if (!monitor.Join(5000))
    monitor.Abort();
    monitor = null;
    handle.Dispose();
    handle = null;
    // free managed resources
    // free native resources here if there are any
    This allows me to skip over the "Do Work" part which should only be done when Signaled from another application. Your suggestion to use handle.Set() in the dispose method coupled with adding the bool _closing allows me to get past the EventWaitHandle
    and also skip the work when closing.
    Also by setting "running" to false in the dispose, the thread will naturally end after the wait handle has been set.
    Thanks for suggesting the Thread.Join, that does seem allot more graceful. When I tested these changes it was blazing fast. In the previous code when I called monitor.Abort the application would hang for about a second. 
    Do you think the changes capture the intent of your suggestions?
    Regards,

  • Is there such a thing as a mailing list count tag?

    I would like to display a live number of how many people are signed up to a mailing list, is this possible?

    Unfortunately at this stage there is no tag that will render this information.

  • Proper method to install R2 CU1 client during OSD?

    As of right now I deploy the client using an MDT 2013 OSD Task Sequence with the built in task "Setup Windows and ConfigMgr" with the following installation properties:
    SMSMP=server.domain.local SMSCACHESIZE=12000
    However after imaging the client version remains at 5.00.7958.1000, but I thought with CU1 some components should display a more recent version number.
    Do I need to add a xcopy step for the latest client hotfix during the OSD, then use the PATCH property during the client install?  For example: PATCH="D:\Hotfix\configmgr2012ac-r2-kb2938441-x64.msp"

    That's one method yes.
    See Justin Chalfant's post here for some info http://blogs.technet.com/b/jchalfant/archive/2014/04/26/patchconfigmgr2012x86andx64clientsduringatasksequenceusingthepatchproperty.aspx
    Cheers
    Paul | sccmentor.wordpress.com

  • JDeveloper tags action method as error

    I have a JSF backing bean - tvApplicationDetail - whose class - TVApplicationDetail - is derived from another class - ApplicationDetail. ApplicationDetail has several action methods - e.g., discardChanges. When I use the following EL expression:
    <af:commandButton .... action="#{tvApplicationDetail.discardChanges}" ... />
    JDeveloper thinks discardChanges() is not a valid method in tvApplicationDetail, so it underscores the EL expression in red, and displays an error indicator on the status bar.
    Although the page works fine, the (incorrect) error indication is kind of annoying. It would be nice if JDeveloper looked up the action method in the entire class hierarchy.

    What is the message of this PropertyNotFoundException?

  • Proper method to close a JFrame

    What is the most apropriate way to perform an action to close a JFrame when a button is click, and return the resource to the system?
    Thanks.

    U can first display the Welcomeframe whatever method u want to use
    i assume u have a Button in WelcomeFrame which will invoke the DataFrame
    If you have the following button write it as follows
    JButton myButton = new JButton("Show Data Frame");
    MyActionEvent lMyActionEvent = new MyActionEvent();
    myButton.addActionListener(lMyActionEvent);In the action event class write down the following
    class MyActionEvent implements ActionListener{
         public void actionPerformed(ActionEvent e){
              JDataFrame fJDataFrame = new JDataFrame();
              //Show or display JDataFrame here u can also do that from within the JDataframe class
              //Here get any values from fJDataFrame.
              //Because they will be lost once the frame is disposed
         //Line No 1:
              fJDataFrame.dispose();
    }In the JDataFrame class set the following property
    mJFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);Let me tell u what will happen.
    When the JDataFrame is invoked from the action listener MyActionEvent the execution will stop at the Line now 1:. Until the fJDataFrame closes. Once the control comes back dispose the frame. Meanwhile do what u want in the JDataFrame until it is visible. U can later close your WelcomeFrame
    Hope this helps

  • Proper method to fire off some code to create a default set of detail data.

    Greetings, fellow nerds. First, I'd like to thank the folks that have helped me out in the past. I don't always return back to the topic to give kudos, and sometimes I even figure out my problem before anyone says anything. And I try to find reference to my problem by doing a search on it beforehand. Which often works.
    Anyways...
    I've got a mater/detail form that I set up using the wizard. Every time a new master record is created, I'm gonna want to set up 62 generic rows of detail records to be associated with it. The detail section defaults to an 'add row' button, which may actually be used, and even the delete function. But, I don't want the user to have to enter 62 rows.
    I've created a table of the generic rows, and have written the sql to populate the details table, using the bind variable that is the id of the master table/row.
    If the user is looking at the master table 'report', and clicks create, it fires off the add process for the master table. No details. Filling in the various master fields, and clicking create, a master record is created, and the page stays there with no re-direct back to the 'report'. And the options are now 'apply changes', and 'cancel'. Cancel takes you back to the 'report', with no details created. At the same time, the details become available for this new master record. But again, with the option to add a single detail row.
    At what point should I fire off the code that will generate the 62 rows of template detail records? Do I just add a button beside the 'add row' button, that will fire off the code, and return them to what they are looking at, with the 62 rows staring back at them to edit? Do I hook it to the 'create' button on the master portion of the page? If so, I'd want it to fire after all of the validations for the master data, and the master record was in fact inserted.
    I'd like to do this the 'correct' way.
    Thanks in advance,
    Clayton

    I can't say anything about a correct way of doing this. Your descriptions doesn't
    point to any critical issues if doing it this or another way. What I can say is that
    this looks like a perfect case for utilizing collections.
    Denes Kubicek

  • What is the proper method to do an internet recovery.  I tried Command R and it did not work.

    I am having problems with my iMac, I cannot log on.  I tried doing the internet recovery with the assistance of Apple support but when it went to restart it had the same problem as I have when trying to log in.  (Mostly gray screen with one login id showing and a restart button on bottom center.)  One screen that the support person got me to showed options which included the internet recovery as well as other options, like Time Machine.  How do I get to that screen?  I would like to try that before I move on to the next step.  I don't want to try the Internet Recovery because it takes a long time with DSL and I am getting older and may not have enough time for another one of these.  THanks, 

    Hello raider js,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes: Videos may be unable to sync to iPhone, iPad, or iPod
    http://support.apple.com/kb/ts1497
    Select a video and choose File > Create New Version > Create iPod or iPhone Version.
    Have a nice day,
    Mario

Maybe you are looking for