Stage.focus doesn't show cursor in TextField?

stage.focus = txt; // txt is a text input field
It successfully gives the TextField "txt" focus because when
I type, the characters appear in the input textfield, however the
familiar blinking text cursor/beam does not appear in the
textfield. This makes you think it does not have focus, so you
click the textfield to give it focus -- completely defeating the
purpose. What's the deal?

Doing some searches online I found myself asking this
question over at asctionscript.org over a year ago. :)
http://www.actionscript.org/forums/showthread.php3?t=143111
No one figured it out back then but I revived the thread and
I think someone identified the issue:
The SWF must have system focus for the blinking text
cursor/carat to appear.
In the browser, SWFs do not have focus until you click on it,
or force focus using javascript's focus() function.
What I don't understand is why the Flash Player in the IDE
doesn't start out with focus -- it seems to start out with a sort
of half-focus.
The project I'm working now is in AIR, though. Again, it's
surprising that the AIR SWF doesn't start out with focus, but I
also have no idea how to programatically give the SWF focus from
AIR.

Similar Messages

  • Stage.focus.id doesn't work

    Hello,
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="comp(event)" xmlns:s="library://ns.adobe.com/flex/spark">
    <mx:Script>
        <![CDATA[
          public function comp(event:Event):void {
            stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    public function mouseUpHandler(event:MouseEvent):void {
      are.text=stage.focus.id;
        ]]>
      </mx:Script>
    <s:VGroup paddingLeft="15" paddingTop="10">
      <s:TextInput width="400" id="inp"/>
      <s:TextArea width="400" id="are"/>
    </s:VGroup>
    </mx:Application>
    I have a message error (InteractiveObject property) , thanks.

    Stage.focus is too low-level, try getFocus().id

  • No blinking cursor in textfield

    I have some textfields that I use with UITextAlignmentRight. The problem is that when I click on them to start typing the blinking cursor doesn't show wich is very confusing for the user. Then when I start typing the cursor shows. It also works when I use the textfield with UITextAligmentLeft. Anyone has seen the same problem? How can I fix it?
    Message was edited by: martymart

    I see the same thing. When I flip to the left aligned, then I see a blinky.
    Message was edited by: martaaay

  • Text doesn't show up after exporting

    When I export my file, the text that I put in the file with the text tool doesn't show up. Everything else is fine though. Someone please halp!

    If you are using dynamic textfields then it is likely you need to embed the fonts/characters for them.  This is most likely the case if you happen to be masking, animating, or otherwise manipulating them.  To embed the fonts/characters you select the textfield on the stage and in the Properties panel you click the button labeled "Embed..." and then select the character sets you need to embed.
    Another cause could be that the textfields are assigned the same font voor as the background such that they do not seem to appear, but if you see the text before you publish the file then this is less likrly to be tyhe case.

  • Air3.0 and the softKeyboard not appearing on Stage.focus = InputTextfield on iOS

    In RC1 of Air3.0 and earlier versions of air, I could summon the softkeyboard for the iPhone/iPad by doing this.
    Create an inputtext field, set it's width and height to 0 to hide it
    Then, when I want to show the soft keyboard, simply do:
    stage.focus = txtCapture;
    Where txtCapture is my input text field. When I wanted to hide it, I would simply set the stage.focus to any other object.
    This worked great until 3.0 was offically released and now the softkeyboard does not appear on the set focus, it ONLY appears if you manually click on the input field itself, but since you can't use center alignment or any other formatting on input text fields for the iOS, I can't let it be seen
    Anyone have any idea how I can get the softkeyboard to appear?

    I think we're experiencing an issue with this:
    We're trying to use the iCade cabinet with an iPad and a Flash application (though this shouldn't affect the problem as the problem can be replicated without any connection or involvement with the iCade unit).
    To make sure that the app is able to respond to the iCade's input (which is a simulation and transmission of certain keystrokes for each input), we create a TextField set off-screen and keep it visible (as this seems to be a requirement), and then we set the stage focus to that TextField. We also invoke requestSoftKeyboard on the TextField.
    I learnt from this thread that setting stage focus isn't required, but I had the same issue as someone else here, in that I read that requestSoftKeyboard isn't supported on iOS - the documentation could be more clear about exactly what this means, like it's been explained here. Besides, setting stage focus should be fine, and not the cause of the issue I'm about to explain.
    We have needsSoftKeyboard=false on the TextField, and after setting that, we request the soft keyboard. The upside is that this appears to prime the runtime to respond to keyboard input regardless of where it's coming from, and the keyboard usually stays hidden. Our problem is that, sometimes on app startup and sometimes up to 15 minutes of idle time later, the soft keyboard appears without prompt or user input.
    Is this intended behaviour? We're only developing this application for iOS, and aren't sure if the issue is perhaps to do with the iOS soft keyboard.
    We also tried handling the soft keyboard events (such as Activate, Activating and Deactivate) to attempt to stopImmediatePropagation and preventDefault. These seem to conflict with our setting focus in the first place, so I don't think we can make use of these. We tried only preventing the event when our target TextField already has focus, but this didn't work, and I think at this point we were really just shooting in the dark!

  • Report works fine in VS2010 but simply doesn't show when published

    Problem:
    Crystal Report works fine in VS 2010 but doesn't show when published to web-server, there is no error, it simply doesn't show.
    Background:
    Installed VS2010 on a freshly installed and fully updated (.net 4.0 is included in the updates) windows server 2003 box with production release Crystal Report 2010. Nothing else is on the server.  IIS 6 is running.  My web-server and VS2010 is on the same box.
    I went ahead and created a new asp.net 4.0 web project called webapplication1. Thereafter, i put a few controls (text-boxes, list-boxes and so on)  on the default.aspx page. Then i created a report.aspx page. This page will have the crystal report viewer on it. I went ahead and set the report up without much hassle (got how-to's from the internet).  I successfully tested my web app with the built-in testing server, the beautiful crystal report presented exactly what i asked it to. There was one recurring "Sys.Application is null or not an object" hiccup that occured every time during testing when i navigated from the default.aspx page to the report.aspx page (the page the report is on). Clicking ignore or continue  on the dialogue box that comes up because of the hiccup will allow testing to continue.  Here's a screen-shot of this recurring hiccup.
    http://i440.photobucket.com/albums/qq122/ricom_19/Testing-Error.jpg
    As i've shown, testing went great, except for the hiccup. I now moved to setup a publish profile. Since my web-server and VS2010 is on the same box this seemed relatively straight forward. All the files went over except the report, i.e. crystalreport1.rpt  file. I solved this by  setting the build action to 'Content' in the CrystalReport1.rpt properties. I did a republish. Now i have all my files, see screenshot: [http://i440.photobucket.com/albums/qq122/ricom_19/Application-Home-Directory.jpg], on the web-server.
    I proceeded to try to browse to my app from another computer on my network. This was successful until i tried to navigate to the report.aspx page that the crystal report is on. The the report.aspx page loaded but the crystal report was simply not on it. No errors, not even the hiccup from testing occured. Its as if the crystal report viewer was never on the page to begin with. Only when i right clicked on the page and 'view source'  did i see some remnants of the crystal report viewer.
    Here is the Report.aspx page when tested in VS2010:
    [http://i440.photobucket.com/albums/qq122/ricom_19/successful-Test.jpg|http://i440.photobucket.com/albums/qq122/ricom_19/successful-Test.jpg]
    Here is the Report.aspx page when published to the web-server and browsed to from another computer on the network:
    [http://i440.photobucket.com/albums/qq122/ricom_19/Reportviewer-Disappear.jpg|http://i440.photobucket.com/albums/qq122/ricom_19/Reportviewer-Disappear.jpg]
    Details of adding report to my web app:
    1) Populate my dataset then write the XML schema, reportschema.xml
    2) Added the crystal Report to the project then used the wizard to navigate to the reportschema.xml. Of course i had to create new connection in Database expert. see screen-shot:
    [http://i440.photobucket.com/albums/qq122/ricom_19/CR-Database-Expert.jpg|http://i440.photobucket.com/albums/qq122/ricom_19/CR-Database-Expert.jpg]
    3) I formatted the report the way i wanted it
    4) Added the Crystal report viewer on the Report.aspx page
    5) In the code-behind of the Report.aspx page i bound the viewer to a report document that is loaded with CrystalReport1.rpt file
    see screenshot: [http://i440.photobucket.com/albums/qq122/ricom_19/Report-Page-Code-behind.jpg]
    That's it.  As mentioned, it tested fine in VS2010 but the viewer doesn't show when i publish to the webserver. I wrote a crystal report in .net about 8 years ago. Things have changed soooo much since then.
    I am wondering if its a license issue? Was also wondering if it had anything to do the testing hiccup, even though research is suggestion the two are unrelated.
    I've described my actions as best as i could (without getting into ridiculous detail) and have included screen-shots of relevant stages of the process. Have a look and tell me your thoughts. Thanks.

    The "Sys.Application is null or not an object" issue is known, submitted for a resolution and documented in KB #1528503. Unfortunately the KB search has been down the last couple of days...
    However, the issue is limited to compile time and does not affect a completed application.
    Re. the viewer missing. Sounds like the viewer directory did not get created or configure correctly. Before I get to that. You mention:
    "I proceeded to try to browse to my app from another computer on my network."
    This bring up the question: If you run the app right on the app server. e.g.; not a client computer, does the viewer and report come up? Is this issue isolated to client computers on the network?
    I suspect that the issue exists irrespective of which computer you try to see the report from - but that is an assumption. If the assumption is correct, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a] article on configuring the viewer. The article does not have CR4VS2010 documented, but you should be able to guide your self using the article. I think the pattern will be obvious.
    Ludek

  • How do you close a dragged applet, as Stage.close() doesn't work?

    I'm trying to implement a close button in a draggable applet, but Stage.close() doesn't work, and there's an odd little "X" icon which is causing me problems...
    My starting point and example is the simple draggable applet from the API documentation. It's the code listed under "User-Specified Close Example":
    http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.AppletStageExtension.html
    import javafx.scene.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.text.*;
    import javafx.stage.*;
    var textContent = "Click the box to return to the browser";
    var outside: Boolean = false;
    var s: Stage = Stage {
        title: "AppDeploy Demo"
        width : 300 height : 200
        style: StageStyle.TRANSPARENT
        opacity: 0.5
        scene : Scene {
                content: [
                    Text { content: bind textContent 
                           x: 25 y:35 fill: Color.BLACK
                           font: Font{size: 24}
                    Rectangle { x: 100 y: 100 width: 100 height: 100 fill: Color.RED
                                onMouseClicked: function(e: MouseEvent): Void {
                                    s.close();
        extensions: [
            AppletStageExtension {
                shouldDragStart: function(e: MouseEvent): Boolean {
                    return e.shiftDown and e.primaryButtonDown;
                useDefaultClose: false
    }However, the Stage.close() function in the user code doesn't seem to close the applet once it's dragged. It seems this can only be achieved by a mysterious little "X" in a box top right, acting as a close button.
    Here's a demonstration of the problem once you've compiled that code:
    1. Open browser with applet (I'm using IE8 on Windows XP)
    2. Shift-drag the applet out of the browser. Notice the little X in a box appears when you drop the applet on the desktop.
    3. Click the red rectangle to invoke the Stage.close() function in the user code.
    4. Applet disappears from screen and does not reappear in the browser.
    5. But minimising all the icons on the desktop shows the little X in a box is still there sitting on your desktop (actually I find the X has gone, but the box is still there). This suggests the applet is still running.
    6. Close the browser. The little X's box is still on the desktop.
    7. After a short pause a Java dialog box appears: "Desktop integration warning. The application would like to create shortcuts. Do you want to continue? OK/Skip" The applet wasn't closed, it is still running!
    8. Click Skip. Dialog box disappears. But the little X's box is still on the desktop. Is the applet still running?
    9. Try to recompile app again into a deployable Jar (I'm using Eclipse for this).
    10. The compiler stops with "ERROR: Jar file C:\[...].jar could not be deleted. The Jar is probably locked by running application, Web browser, emulator or antivirus. Please check that all windows related to the application have been closed." Yes, the applet Jar is still being used.
    11. Minimise all the windows. The little X's box is still on the desktop.
    12. Click the little X's box.
    13. After a few seconds the box disappears. Does this mean the applet is no longer in use...?
    14. Recompile the app again into a deployable Jar. It works!
    By the way, you get the same experience with another Sun sample: the DraggableMP3Player at
    http://javafx.com/samples/DraggableMP3Player/index.html
    That, too, thinks it's implementing it's own close button, and again the same problem occurs.
    So it seems Stage.close() doesn't properly close the applet, and only the the little X in a box will do this.
    I'd like to be able to really close the applet from my own code. How can I do this?
    Many thanks
    Nik
    Edited by: nik.silver on Aug 6, 2009 12:48 PM

    After double tap home button, swipe up on the app card that appears above the icon.

  • SWF files doesn't show in flash

    I converted some videos into swf files. I opened them in flash player and they all look fine,  but when I imported one  in flash and put it in the scene the only thing visible was a small white circle, like the one that appears at the center of the objects when you select them. It couldn't be moved, it could barely be selected  and it doesn't show up when testing the movie.  I don't need to edit the video in flash, I just want to put it together with other elements, something similar to this http://mawichan.deviantart.com/art/Oban-WEB-PAGE-381429374
    I have the suspicion that they don't work because they were not originally made in flash, since I have worked with swf files in flash before, but those were banners previously made in flash.
    However I would like to hear the opinion and/or advice of someone who knows more  than me, I am still a beginner.
    Thank you.

    video files should be played in flash using the flvplayback component (or using the netstream class), not converted to swfs. ie, create a fla, add an flvplayback component to your stage and, in the properties panel, assign the component's source to be your video file.  (use a relative path.)

  • XML shows in Flash, but doesn't show on server?

    Hello.
    I have a Flash website with 5 sections (Featured Work, News, About Me, Services, Contact). All the sections works fine, both in Flash and on the server, if the content isn't loaded from XML. But in the News section i use XML for loading the news.
    If i test my movie in flash, the whole site works fine, and the XML News works perfect. But if i test the movie in a virtual server (like MAMP) or if i test it on my own server, the news section doesn't show.
    I can't seem to find the problem?
    Jonas Philippon

    I'm sorry to sound so stupid, but this is new to me.
    I tried pasting the trace(MT2.newsNum,Number(MT2.newsNum)) in both out and in the for loop, and i still get the same trace "5 5"
    I'm not really sure what to do, so i'll just try explaining my whole site to you:
    I have my "main.fla" with three layers with actionsscript:
    - Navigation Actions
         - Has a for loop that creates 6 textfields with clickevents and SWFAddress that changes between 6 frames in a MovieClip (SubNavBar).
    - Positioning Actions
         - Positions the textfield buttons, the navigation bar, and the sub navigation bar in the SubNavBar movieclip, and places my dynamic background.
    - XML
         - I can't explain the XML layer, so i have attached it.
    The SubNavBar MovieClip has 6 frames. The 1 is empty, so the site is clear at first. In frame 2, 4 and 6 there is a for loop like in the navigation layer, so these layers have a sub navigation bar, that once again changes between some frames in a movieclip.
    In frame 3 their is the news code i pasted earlier, and in frame 5 there isn't anything yes, but it should just be graphics.
    XML LAYER:
    // XML LISTS //
    // ========= //
    var newsTitle:XMLList;
    var newsInfo:XMLList;
    var newsContent:XMLList;
    var newsTitleArray:Array;
    var newsInfoArray:Array;
    var newsContentArray:Array;
    // NUMBER OF ITEMS
    var newsNum:Number;
    // LOAD XML //
    // ======== //
    var xml:XMLLoader = new XMLLoader(this,"data.xml");
    // function called when XML is loaded
    function getXML(xmlData:XML):void {
    // STORING RELEVANT DATA INTO LISTS FOR LATER ACCESS //
    newsTitle = xmlData.news.article.title;
    newsInfo = xmlData.news.article.info;
    newsContent = xmlData.news.article.content;
    newsNum = newsTitle.length();
        newsTitleArray = xmlData.news.article.title.text().toXMLString().split("\n") ;
    newsTitleArray.reverse();
    newsInfoArray = xmlData.news.article.info.text().toXMLString().split("\n") ;
    newsInfoArray.reverse();
    newsContentArray = xmlData.news.article.content.text().toXMLString().split("\n") ;
    newsContentArray.reverse();
    In the folder i have uploaded to my server, i have following:
    - AC_RunActiveContent.js - Background.png (main background) - com (folder) (GreenSock) - data.xml - index.html - js (folder) (SWFAddress) - mailer.php (Contact Form) - main.fla - main.swf - media (folder) (Pictures For Background) - Mosaic.swf (Mosaic Overlay For Background) - P-Logo.png - preview.swf (Background) - SWFAddress.as - SWFAddressEvent.as - textLayout_1.0.0.595.swz - xml (folder) (xml config for background) (SEPERATE FLA FILE (NOT A PROBLEM) - XMLLoader.as
    The XMLLoader.as is the file that loads my data.xml. The data.xml has the text to my news section.
    XMLLoader.as:
    package {
    import flash.events.IOErrorEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.Sprite;
    import flash.display.MovieClip;
    public class XMLLoader extends Sprite {
    private var loader:URLLoader = new URLLoader();
    public var loadedXML:XML;
    // accept parent path to xml
    public function XMLLoader(mT:MovieClip, path:String):void {
    // LOADING XML //
    // =========== //
    loader.load(new URLRequest(path));
    loader.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
    function onComplete(evt:Event):void {
    loadedXML = new XML(evt.target.data);
    loader.removeEventListener(Event.COMPLETE, onComplete);
    loader.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
    // Run getXML function from where this clas was instantiated
    mT.getXML(loadedXML);
    function onIOError(evt:IOErrorEvent):void {
    trace("Error: " + evt.text);
    I hope this helps you? I hope you now can give me more specific help?

  • International clock widget on dashboard doesn't show the "i" to change the city. Is there any way to do it?

    Hi,
    On dashboard my international clock doesn't show the "i" to select the time zone. Any idea to solve it? Thanks.

    Try hovering your cursor over the clock.  Does the "i" appear then?

  • When I open an .swf file in Adobe Flash Pro it doesn't show up.

    Hey, I'm having a problem. I have Adobe Flash Professional CS5.5, I'm trying to convert an SWF file to a GIF animation.
    What I do is: New-->Actionscript 3.0
    Import-->Import to stage-->open my .swf file
    It shows the frames of it but it's all blank and it just doesn't show up. Any way to fix this?

    You need to have the fla file if you want to create a gif.

  • Embedded image in SVG doesn't show up in An, but opens in browser.

    I feel stupid cause it seems nobody else has this problem:)
    I've exported svg file from Illustrator, some graphics and embedded .jpg image, but when i open the svg file in Edge i can see only graphics , the image layer is there but i can't see the image itself.
    But when i open it in browser everything is there - graphics and the image.
    Why can't i see the embedded image on Edge stage?

    I have an iBook, and WiFi doesn't show up as an option in my network folder.
    Do you mean that the AirPort network port does not appear, and is enabled, in System Preferences > Network?

  • Text doesn't show when I embed

    Hi, thanks for taking the time to look at my problem.
    I have Flash CS3, and I just downloaded the Pirulen font. I
    played my movie and it works. When I tried to embed the font, the
    text doesn't show up at all.
    Also, I have a tint on my text on a keyframe, and if I click
    on the timeline, the text shows up black like it should, but when I
    export it, the text stays red. I tried different fonts, but none of
    them work.

    and are you embedding the needed characters? if yes, are you
    embedding the needed characters?
    are you referencing your textfield with actionscript
    anywhere? if so, post (only) the code that references your
    textfield (using the attach code option in this forum).

  • SetVisible(true) but doesn't show up

    What I'm trying to do is get the writeAll panel to show up when they click the Write button in the menu. I have it so it's set to invisible after it's created so it only shows up when they click the write button, only it doesn't show up. I've put break statements in and it runs through the writeAll.setVisible(true) but it doesn't change anything on the form. Is there a way to refresh what's being shown? I dont think this is too complicated, but if you need to to weed out my code, please let me know.
    import java.awt.*;
    import java.awt.event.*;
    public class Interface extends Frame implements ActionListener {
        public Label lblwriteFName = new Label("First Name");
        public TextField writeFName = new TextField(12);
        public Label lblwriteLName = new Label("Last Name");
        public TextField writeLName = new TextField(12);
        public Label lblSSN = new Label("Social Security Number");
        public TextField SSN1 = new TextField(3);
        public Label lblSSN1 = new Label("-");
        public TextField SSN2 = new TextField(2);
        public Label lblSSN2 = new Label("-");
        public TextField SSN3 = new TextField(4);
        public Label lblhRate = new Label("Hourly Rate");
        public TextField hRate = new TextField(5);
        public Label lblwDate = new Label("Date");
        public TextField wDate = new TextField(10);
        public Label lblcode = new Label("PayCode");
        public TextField code = new TextField(3);
        public Label lblhours = new Label("Hours Worked");
        public TextField hours = new TextField(2);
        public Panel writeAll = new Panel();
        public Panel firstRow = new Panel();
            public Panel lblfirstRow = new Panel();
        public Panel secondRow = new Panel();
            public Panel lblsecondRow = new Panel();
        public Panel thirdRow = new Panel();
            public Panel lblthirdRow = new Panel();
        public Interface() {
            firstRow.setLayout(new FlowLayout());
            secondRow.setLayout(new FlowLayout());
            thirdRow.setLayout(new FlowLayout());
            writeAll.setLayout(new GridLayout(6,1));
            lblfirstRow.add(lblwriteFName);
            lblfirstRow.add(lblwriteLName);
            firstRow.add(writeFName);
            firstRow.add(writeLName);
            lblsecondRow.add(lblSSN);       
            secondRow.add(SSN1);
            secondRow.add(lblSSN1);
            secondRow.add(SSN2);
            secondRow.add(lblSSN2);
            secondRow.add(SSN3);
            lblthirdRow.add(lblhRate);
            lblthirdRow.add(lblwDate);
            lblthirdRow.add(lblcode);
            lblthirdRow.add(lblhours);
            thirdRow.add(hRate);
            thirdRow.add(wDate);
            thirdRow.add(code);
            thirdRow.add(hours);
            writeAll.add(lblfirstRow);
            writeAll.add(firstRow);
            writeAll.add(lblsecondRow);
            writeAll.add(secondRow);
            writeAll.add(lblthirdRow);
            writeAll.add(thirdRow);
            setLayout(new BorderLayout());
            add(writeAll, BorderLayout.NORTH);
            writeAll.setVisible(false);
            MenuBar mnuBar = new MenuBar();
            Menu mnuFile, mnuOptions;
            MenuItem mnuFileExit, mnuFilePrint, mnuOptionsWrite, mnuOptionsRead, mnuOptionsSummarize;
            setMenuBar(mnuBar);
            mnuFile = new Menu("File", true);
                mnuBar.add(mnuFile);
                mnuFileExit = new MenuItem("Exit");
                mnuFilePrint = new MenuItem("Print");
                    mnuFile.add(mnuFileExit);
                    mnuFile.add(mnuFilePrint);
            mnuOptions = new Menu("Options", true);
                mnuBar.add(mnuOptions);
                mnuOptionsWrite = new MenuItem("Write");
                mnuOptionsRead = new MenuItem("Read");
                mnuOptionsSummarize = new MenuItem("Summarize");
                    mnuOptions.add(mnuOptionsWrite);
                    mnuOptions.add(mnuOptionsRead);
                    mnuOptions.add(mnuOptionsSummarize);   
            mnuFilePrint.addActionListener(this);
                mnuFilePrint.setActionCommand("Print");
            mnuFileExit.addActionListener(this);
                mnuFileExit.setActionCommand("Exit");
            mnuOptionsWrite.addActionListener(this);
                mnuOptionsWrite.setActionCommand("Write");
            mnuOptionsRead.addActionListener(this);
                mnuOptionsRead.setActionCommand("Read");
            mnuOptionsSummarize.addActionListener(this);
                mnuOptionsSummarize.setActionCommand("Summarize");
            addWindowListener(
                new WindowAdapter()
                        public void windowClosing(WindowEvent e)
                            System.exit(0);
        public void actionPerformed(ActionEvent e) {
            String arg = e.getActionCommand();
            if (arg.equals("Exit")) {
                System.exit(0);
            if (arg.equals("Print")) {
            if (arg.equals("Write")) {
                writeData();
            if (arg.equals("Read")) {
            if (arg.equals("Summarize")) {
        public void writeData() {
            writeAll.setVisible(true);
        public static void main(String args[]) {
            Interface interFrame = new Interface();
            interFrame.setBounds(100,100,500,500);
            interFrame.setTitle("Payroll");
            interFrame.setVisible(true);
    }

    make this change in the code
    public void writeData() {
    writeAll.setVisible(true);
    validate();

  • Why filters doesn`t show in my application?

    I made filters (affect) to the text, and it doesn`t show me why?

    If you're using GPU, you would need to draw your movieclips with their filters into a bitmapdata/bitmap, and then show that, because filters don't work on GPU. If you're using CPU, then they should be working.
    If these are filters that you've set on the stage, just to look nice, you might think about doing a Convert to Bitmap on the stage. That way they will work better, and look exactly right, even with GPU.

Maybe you are looking for