GUI Issue - new developer

I am trying to run a simple java example. I am using j2se 1.4.2_03 SDK . When I run this program I expect to see a JFrame but I don't. I added println() to debug and see what it does. I never see debug message "JFrame Packed". So I assume program control hangs in Pack(). I don't know why?
I need some help. Thanks in advance.
I removed Pack() and use SetSize(). now it hangs on setVisible() call. I still don't see a window.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/* FrameDemo.java requires no other files. */
public class FrameDemo {
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
    private static void createAndShowGUI() {
        //Suggest that the L&F (rather than the system)
        //decorate all windows.  This must be invoked before
        //creating the JFrame.  Native look and feels will
        //ignore this hint.
          System.out.println("setting feel");
        JFrame.setDefaultLookAndFeelDecorated(true);
        //Create and set up the window.
        JFrame frame = new JFrame("FrameDemo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          System.out.println("Jframe created");
        JLabel emptyLabel = new JLabel("");
                    System.out.println("JLabel Created");
        emptyLabel.setPreferredSize(new Dimension(175, 100));
        frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
          System.out.println("JLabel added to content pane");
        //Display the window.
//        frame.pack();
//          System.out.println("JFrame packed");
          frame.setSize( 500, 300 );
          System.out.println("JFrame size set");
        frame.setVisible(true);
          System.out.println("JFrame visible");
    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
}

Kame cho?
I am running 1.4.1_01 and have no problem realizing the JFrame. Out of curiosity, why are you using invokeLater()? Are you doing something else- perhaps displaying another component?

Similar Messages

  • New Development and CA

    We are in process of developing new eCommerce application on ATG. We also have a business requirement to manage images and products using BCC. Most of the business requirements in phase 1 of the project is to configure and deploy application code along with CA ( BCC / Merchandising). My question is whether it is advisable to do new application development along with CA configuration at the same time. What does ATG best practice say in this regard. My opinion is that we should do new application development (deliver new functionality) first to be followed by CA initiative. I have never directly worked on CA projects but I have been part of large teams with multiple initiatives where CA being one of the initiative and I have seen there are quite a few steps that one need to follow in configuring and deploying CA / BCC e.g. versioning of modules, modifying DB schema to support versioning etc. I don't want to run into issues where our main focus is to deliver new functionality and want to avoid the complexity of doing both new development and CA at the same time.
    Edited by: 899085 on Nov 24, 2011 12:01 PM

    The best practice recommendation would be to include any BCC/CA implementation as early as possible in your project plan. Understanding the process of how the business users will be using the tools and what impact any customizations to the ATG code your applications make are very important in a successful rollout of a site usign the BCC and Merchandizing. We tend to see that the projects which attempt to implement BCC/CA at the last minute are the ones that encounter the most problems. Projects which include the BCC and CA in the early stages of the applciation design, project planning, and UAT and load testing go through a much smoother test cycle and launch.

  • New Development - Leave Application (HR)

    I am working on a project where my client need a new development on leave where both some attendance types and absence types should be request from same screen.
    so please help me in this issue.

    Hi,
    you need to work on Infotype 2001 & 2002.
    That is tables PA2001 & PA2002.
    Regards,
    Amit

  • New Development - No Infrastructure!

    We have moved into a new development and did have an engineer visit scheduled for yesterday to install our new line. The appointment was between 1-6pm, I called at 3pm and was told he was coming, I then call again at 5.15pm and was told the engineer wouldn't be coming. The reason was that additional work needed to be done at the exchange.
    I then went with the building site manager and we inspected the BT ducting that surrounds my property. To my surprise there was absolutely no BT infrastructure at all in any of the ducts...no wonder the engineer couldn't install our line!
    Today I have spent over 2 hours trying to speak to someone, 6 calls, 2 supervisors and got absolutely nowhere! All the call agents were hard to understand due to their very strong Indian accent. I've now had to open a complaint both over the phone and just now online.
    I've believe that the 'New Building Site Development Team' needed to visit the site to install the core infrastructure. I've tried to make contact with them and failed, I've tried to escalate the issue and failed, I've tried to speak to someone senior enough to understand my problem....once again I've failed.
    I'm literally lost for words at the customer service, not to mention angry for wasting a days holiday and even more upset that we will now have to spend over £400 a month on child care as we can't work from home.
    If anyone can help me I'd be really grateful. 

    Just to clarify, this is not the builders responsibility.
    The house itself has been cabled with the normal house points and cabling with a terminating "white" cable poking out the front of the house, all ready for the engineer to connect to. The onsite ducting and BT Manholes have all been installed, either by a contractor of Openreach or Bovis (if they are an approved installer). The only people who are allowed to install cabling within a BT duct is BT or a part of BT like Openreach, unless you seek Wayleave permission. I know this as I project manage 'dark fibre' installations across private estates.
    Bovis themselves completed their work and gave BT permission to install infrastructure over 2 months ago. I confirmed this with both the site manager and Bovis headoffice.
    After all my calls yesterday, I decided to phone BT Business as I know they are UK based, the person I spoke to was more useful and did give me the number for the 'New Estates Team' (0800 616866) - however when I called them I was told they can't deal with end users and I need to speak to my ISP...which is interesting as that's BT who I've so far spent 5 hours trying to communicate with. 
    I then tried to call Openreach but once again they won't speak to end users...
    So the current position is;
    1) I have no phone line
    2) The estate has no BT infrastrucutre
    3) I have complained via Twitter (36hrs response time) and the normal complaint channel (72hrs reponse time)
    4) 5 Hours worth of calls (at a cost to me)
    5) 1 days holiday taken for no reason
    6) The additional cost of childcare (approx £150 a week) 
    7) Having to work in the office until midnight most evenings
    8) I had to spend another 45mins talking to the accounts team, as they'd tried to take directdebit for the service!
    The average time to actually get to speak to an 'agent' is 12mins, then 4-5mins to verify details, then 3mins for them to read the screen, then 3mins of them mumbling in an extrememly hard to hear accent. Eventually you explain the situation again, they pause, carry on with their script, you ask to speak to a supervisor...they also can't help.
    There is without a doubt a problem in the process for getting a new estate setup, I really hope that somehow, via some method I manage to speak to someone who can help!

  • Setting up a new developer account has wrong name listed in personal information with no option to edit

    In the process of setting up a new developer account, getting to step #2 & reviewing the personal information, the first & last name listed for my Apple ID is incorrect, however it is correct on the Apple ID settings page, as well as all of my iTunes billing information. How can this be updated? I don't want to create a developer account and be listed with the wrong name!

    Please read before you post.
    Contact [email protected] to investigate signup issues.

  • What is required when adding references when building up a new development computer?

    I just took over an existing project from another developer. I am using Visual Studio Ultimate 2012 Update 4
    I am trying to set up a new, clean, development machine but this project has references to ComponentOne Studio for WinForms software for which I cannot find the install programs. I do have access to the actual DLL files that are referenced in project. 
    Can I simply copy the referenced DLL files from the old development computer to a folder on my new development computer and add a reference to them in my project or am I actually required to install the Studio for Win Forms product to get access to these DLLs
    for the reference?
    Thanks in advance for any help.
    Dave

    Hello Dave,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because the dll that you want to reference is the dll of
    ComponentOne Studio for WinForms software which is third-party, I suggest consulting your issue on ComponentOne forums:
    http://our.componentone.com/groups/ for better support.
    Thanks,
    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.

  • Exchange 2013 issues - (new send email Stuck in Drafts not send)

    Exchange 2013 issues - (new send email Stuck in Drafts folder not send)

    I am also having this issue.
    server 2012 VM with exchange 2013. plenty of resources, more than recommended so cannot be a BAck Pressure issue especially as no clients are connected yet.
    In the early stages of setup and testing, mail sent to other mailboxes worked fine in outlook 2007 and OWA but after a few issue that developed and are now resolved, any e-mail send within outlook or OWA just goes straight into the drafts folder.
    I tried, DNS setting changes under roles, on the server, on DNS server, MX DNS records, increased resources, looked at received connectors, changed and even deleted send connectors as this is not required for internal mail. Tried changing authentication
    types but then outlook won't connect to, staying with Basic Auth.
    Have not been able to test inbound e-mail as this is going to replace a production server and is not ready, although I could probably simulate a route from another server and push e-mail to it. Will try tomorrow.
    I have spent about 20 hours trying to figure this out and made probably 40 changes. Change, test, rollback etc. Been searching through loads of forums and technet sites all with no help.
    All services are started, server has been rebooted several times.
    It is also an AD server and has both Exchange roles installed. There is no reason why it should not work. This is so frustrating, we don't have these issues with the now end of life Scalix, or MDaemon or Zimbra. Pity the client wanted a Microsoft solution.
    To be honest there are not a lot of things that cannot be changed in ECP although there is more under exchange powershell however I am not familiar with all the commands yet. I have resorted to watching training videos even though I am a seasoned IT Pro, although
    not so much with exchange it seems.
    I have seen many people have this issue on Exchange 2007, 2010 and 2013. Someone must know how to resolve this or find a work around?
    So far I have an expensive solution the client has purchased that I cannot get running properly.
    Aside from this issue, I really like the new Server 2012 and new Hyper-V.
    I was about to install Exchange Server 2013 on a physical machine due to this f#ckin' issue. But a post for the DNS change has saved my life:
    http://social.technet.microsoft.com/Forums/en-US/exchangeserverpreview/thread/04c0147b-f4e3-4041-a566-310854e71068/ (rafael9908's answer)
    And thanks Jesper Bernle for excellent info provided by your link.

  • New development forums

    I discovered that there's a whole new section I have never seen in the cisco forums that specifically targets developers:
    http://forums.cisco.com/eforum/servlet/CDN?page=main
    Amongst other things, there are separate forums for various APIs and a forum about IP Phone services.
    So I'm wondering if anybody working at Cisco would care to comment as to what the idea is with having multiple forums for the same purpose. Are we supposed to migrate to the new developer area and will posts be moved at some date and this forum closed, or what will happen with it?

    That is a news to me. Thanks for sharing. I hope Cisco can merge these forums so we have only one place to search.

  • New Development system copy from Production

    Hi All,
    Hope you can help me out here with some ideas.
    We are currently planning to implement a new SAP BW Development system, and for this we would like to make it a 1:1 copy of our current production system. Meaning all from customizing, ABAP, workbench objects etc.
    But what we do not want is all the transaction and master data in infoobject, cubes etc., we are only interested in the structure and objects. Therefore we can rule out "System copy".
    My question is then, is there any other ways to do this when system copy is a no go? I know we can do client copy but then we will not get all the workbench / ABAP programs which we need.
    Any ideas on how to do this?
    Thx. in Advance

    Hi Rasmus,
    But what we do not want is all the transaction and master data in infoobject, cubes etc., we are only interested in the structure and objects. Therefore we can rule out "System copy".
    Options 1: As BI objects are cross client , copying client will not solve your purpose 100%.
                    You can perform system copy and then clean up data in DEV
    Option 2: You can create a new Development and then create TRs for required configuration objects and move to new development system.
    Option 3: Use SLO tools to perform container copy without any data.
    Hope this helps.
    Regards,
    Deepak Kori

  • Issue in development og z report in abap

    Hi all,
    i am facing an issue while developing a report.
    i am using a table QAMV (LOGIC  stated below)
    pass inspection lot no. pick MIC , MIC Description
    issue is that against single inspection lot no. multiple MIC are assigned. How i can pick all MIC , MIC Description by entering inspection lot no.
    ABAPer is asking for another primary key to fetch all MIC. According to abper he is unable to fetch all MIC on the basis of single inspection lot no.
    format of report and table (qamV) screen shot attached below.

    Ask you Technical Consultant to:
    SELECT VERWMERKM KURZTEXT
    INTO CORRESPONDING FIELD OF IT_TWO
    FROM QAMV
    WHERE PRUEFLOS = IT_ONE-PRUEFLOS.
    DELETE ADJACENT DUPLICATES FROM IT_TWO COMPARING ALL FIELDS.
    (If you are selecting with reference to some other table.)
    Or else you just need to
    SELECT * FROM QAMV
    MOVE:
    PRUEFLOS TO IT-PRUEFLOS,
    VERWMERKM TO IT-VERWMERKM,
    KURZTEXT TO IT-KURZTEXT.
    APPEND IT.
    ENDSELECT.
    Hope this will help.

  • Issue in development oF Customised report in abap

    Hi all,
    i am facing an issue while developing a report.
    i am using a table QAMV (LOGIC  stated below)
    pass inspection lot no. pick MIC , MIC Description
    issue is that against single inspection lot no. multiple MIC are assigned. How i can pick all MIC , MIC Description by entering inspection lot no.
    ABAPer is asking for another primary key to fetch all MIC. According to abper he is unable to fetch all MIC on the basis of single inspection lot no.
    format of report and table (qamV) screen shot attached below.

    Ansh,
    Could you be more specific about your requirement.
    I understand you need to fetch MIC data with reference to Inspection Lot Number. But what I don't understand is; from where do you want that. Could you please share the steps to view MIC information on SAP Screen for better understanding. It will help me and your ABAPer (Technical Consultant is better ; ) in building the logic.
    Gaurav.

  • Issue in Develop mode for embedding google map

    Hello,
    I am facing an interesting issue in Develop mode for embedding google map html code (screenshot is attached)
    The map rectangle showing almost same size box underneath filled in black, while in preview mode, it is working properly. I could not find the reason, where I am doing something wrong.
    Many thanks .

    Hi Muzeone,
    Its a default behavior with every WYSIWYG HTML Designer or editor,
    Reason :The black box which is appearing in the design view is because you might have tried increasing the size of the iframe thumbnail.
    If you are using Iframe and using Insert HTML feature in MUSE, make sure when you paste the iframe code in MUSE, it creates a thumbnail in design view do not resize it in design view.
    Size does not change the height and width of Iframe in MUSE as its being controlled by the codes that you are inserting.
    The design view will only show you iframe height which is defined in the codes below that it will show a black box.
    Enjoy working with MUSE !!
    Thanks
    Prabhakar Kumar

  • Can not change vendor when creating a new Development Component in NWDS

    Dear friends,
    Im trying to create a new Development Component in NWDS. Our NWDS is connected to NWDI and we are using CM Services option of NWDI.
    Before I could create a DC and change the vendor but now I cant change it anymore. Now, the vendor is by default sap.com and we cant change it and it seems that we also have to put our project in a separate directory. home/ directory or other directories in the list.
    See below screen shots...
    If I make a new DC than we see it like this: home/bpm_test [sap.com].
    If I make a new DC in my LocalDevelopment I can change the vendor and I dont have to choose a home directory.
    Do you have any idea how to change that?
    Any help would be greatly appreciated.
    Thank you in advance,

    HI,
    it seems that the vendor is defined in the NWDI track. That's why you can't change it.
    regards,
    Vasils

  • I opened a new developer account but shows The item you've requested is not currently available in the U.S. store.

    i opened a new developer account but shows The item you've requested is not currently available in the U.S. store.

    actually my ios developer account has been approved two days ago, and transfer an app from other account. when i try to enter my user account via iTunes then it shows "Item Not Available, The item you've requested is not currently available in the U.S. store." So what should i do??!!

  • SAP GUI issues - VA41 - additonal data B screen is not visible completly

    Hello everyone,
    Tthere was a problem reported by one of our sales users that in VA41/VA42 screen, there are different tables available, there is a tab "Additional data B" for one user only half of the tab is visible in the presentation server. The user is not able to scroll right/left and couldn't do any data entry on that screen.
    Any one has any clue why this issue is only for this user.
    The GUI version and patch : 7.10 with Patch level 3 ( File version : 7100.1.3.1029)
    When we ask the user to try logging with his id in another PC, the table is visible completely. Both the desktop' GUI version is all the same. No other user is having this issue except one user. Hence I think it is related to GUI issue.
    If anyone faced this issue before, please suggest a resolution/workaround
    Please don't suggest for higher level patch, other PC's with the same level patch is working fine.
    Rajan

    We had a similar issue with a different t-code. The user also had a problem with Outlook and the CRM system we use. We eventually decided thet athe user's profile information was corrupted.
    We deleted the user's windows profile on the particular PC and then created it again. This fixed the problem - probably not the best answer, but it worked.

Maybe you are looking for

  • Plz help i what to..

    HI,IAM USUNG AND OCX FILE CALLED ACTIVE SKIN 4,ITS APROGRAMM THAT APPLIES SKINS TO YOUR FORMS AND GIVE THEM ANICE LOOK.IAM TRYING TO USE IT WITH ORACLE SO,1 HAVE INSERTED IT THEN I PUT THE PROGRAM UNITS OF IT.AND I WHAT TO SEND PARAMETERES TO THESE 2

  • Conversion App for mpg to avi (so it will work with iDVD' 08)

    I need an app to convert my camera mpg movie clips to avi. So it will work with iDVD 08. Not Quicktime Pro ( Can't upgrade without losing the pro features, so looking for an alternative ) Does any one know of an free app? Thanks

  • DB Authentication Screen

    Hi, I am hoping some one can help me on this. I have 2 reports running on the same server, I have customized DB auth file for 1st Report but when I run the 2nd Report I still get the customized Screen. How can I get two different DB Authentication Sc

  • Can anyone help transfer songs from itouch to itunes?

    Can anyone help transfer songs from itouch to itunes? Stupidly I deleted all my music from my laptops music folder: I was doing a spring clean and wrongly thought that all the music was duplicated stored in itunes itself. Anyway I have all my music o

  • Problems w/Tables and Cells

    Unfortunately I am still using EW and have run into a problem I can't seem to get a grip on. Thus I have several tables w/n tables. Problem is that tables/cells do not seem to have their usual borders. At this place on web page, Ad Could Go Here - $3