Creation of GUI

Hello puce
I am an engineering student and I need to submit a project in my final semister.My project is creation of browse files and the platform is java.For this I also need to create a GUI.I think swings is the best choice bbut I am unable to hit the right point.
As I am a starter will u please send me a program to create a basic GUI with some check boxes,combo boxes and some buttons and also their arrangement on the page.I shall modify it according to my requirement.I'll be grateful if u help me in this.
Please mail me as soon as possible to [email protected]
Thank you.

Read the API. JCheckBox, JButton, JComboBox or whatever.
You will find a link to the Swing tutorial from each of the above. From there you will find example programs.
We are not going to write code for you.

Similar Messages

  • Creation of Profile under profile set

    Hi Everyone,
    My issue is around creation Profile in the programming way using the BAPI or Function modules.
    I have created Profile set using BAPI BAPI_PROFILESET_CREATE and target group with BAPI BAPI_TARGETGROUP_CREATE,
    but unable to find the correct BAPI to create Profile and link it under the profile set.
    I have to look into some forums and found few Function modules below which I have worked.
    The Function modules that got triggered is CRM_MKTTG_PF_MAINTAIN, when i try this i am not getting any errors but it is not getting saved in database, i used bapi commit. but in actual creation from GUI sceanrio they are using some other function module CRM_MKTTG_PF_G_SAVE_OB.
    Please suggest how to save to database after maintaining profile through CRM_MKTTG_PF_MAINTAIN.
    Other scenario when i try using the FM CRM_MKTPF_CHECK_AND_CREATE,  when i debug through i get following after coming out of the FM before saving.. We get the error saying Profile set ID does not exist, but actually it exists..
    Can anyone let me know the correct data to be passed to the FM to create a Profile...
    Thanks
    Kranthi

    Hello,
    thanks for the quick response..
    I have tried using the FM CRM_MKTTG_PF_SAVE but i get the error saying Profile not found in buffer...
    Thanks

  • 10gOAS RepCA into db disconnects after TS creation

    Hi,
    Trying to use RepCA to install into my existing database. Have confirmed all the options, parameters, etc per install instructions.
    Looking at Log, installer disconnects after successful tablespace creation. GUI indicates breakdown when it tries to connect as WKSYS.
    Can't work around, since the RepCA drops the WK users and tablespaces before doing anything.
    NonRAC, NonRaw install on Win2K.
    Please advise.
    Thanks,
    Scott Rappoport, OCP
    Log excerpt follows. (NOTE: hostname XXXX'd out).
    The tablespace OLTS_DEFAULT was created successfully
    The tablespace OLTS_SVRMGSTORE was created successfully
    Repository Loader actionFinished
    Repository Loader ActionQueueFinished
    Repository Loader actionStarting
    Repository Loader actionFinished
    Repository Loader ActionQueueFinished
    Loading Repository for AutoExtend Tablespaces using the specification file E:\Disk4\repCA\repca\xml\autoextend.xml
    Repository Loader actionStarting
    [SQLPlusAction] Oracle Home: D:\oracle\product\9204
    [SQLPlusAction] SQLPlus options:
    [SQLPlusAction] User name: SYS
    [SQLPlusAction] Connect string: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))
    [SQLPlusAction] DB role: SYSDBA
    [SQLPlusAction] SQL script file: E:\Disk4\repCA\repca\sql\autoExtend.sql
    [SQLPlusAction] Output :
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 4 13:20:05 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> SP2-0640: Not connected
    [SQLPlusAction] Error :
    <None>
    Repository Loader actionFinished
    Repository Loader ActionQueueFinished
    Loading Repository for Grant permissions using the specification file E:\Disk4\repCA\rdbms\xml\permissions.xml
    Repository Loader actionStarting
    [SQLPlusAction] Oracle Home: D:\oracle\product\9204
    [SQLPlusAction] SQLPlus options:
    [SQLPlusAction] User name: SYS
    [SQLPlusAction] Connect string: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))
    [SQLPlusAction] DB role: SYSDBA
    [SQLPlusAction] SQL script file: E:\Disk4\repCA\rdbms\admin\dbmsiasu.sql
    [SQLPlusAction] Output :
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 4 13:20:06 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> SP2-0640: Not connected
    SQL>
    [SQLPlusAction] Error :
    <None>
    Repository Loader actionFinished
    Repository Loader actionStarting
    [SQLPlusAction] Oracle Home: D:\oracle\product\9204
    [SQLPlusAction] SQLPlus options:
    [SQLPlusAction] User name: SYS
    [SQLPlusAction] Connect string: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))
    [SQLPlusAction] DB role: SYSDBA
    [SQLPlusAction] SQL script file: E:\Disk4\repCA\rdbms\admin\prvtiasu.plb
    [SQLPlusAction] Output :
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 4 13:20:07 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> SP2-0640: Not connected
    SQL>
    [SQLPlusAction] Error :
    <None>
    Repository Loader actionFinished
    Repository Loader ActionQueueFinished
    Loading Repository for OracleAS Ultrasearch using the specification file E:\Disk4\repCA\ultrasearch\install\us_repca.xml
    Repository Loader actionStarting
    [SQLPlusAction] Oracle Home: D:\oracle\product\9204
    [SQLPlusAction] SQLPlus options:
    [SQLPlusAction] User name: SYS
    [SQLPlusAction] Connect string: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))
    [SQLPlusAction] DB role: SYSDBA
    [SQLPlusAction] SQL script file: E:\Disk4\repCA\ultrasearch\admin\wk0deinst.sql
    [SQLPlusAction] Output :
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 4 13:20:09 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> ==============     Ultra Search Deinstallation ==============
    Connected.
    drop context wk$context
    ERROR at line 1:
    ORA-04043: object WK$CONTEXT does not exist
    drop context wk$ctx_ldap
    ERROR at line 1:
    ORA-04043: object WK$CTX_LDAP does not exist
    drop user wksys cascade
    ERROR at line 1:
    ORA-01918: user 'WKSYS' does not exist
    drop role wkuser
    ERROR at line 1:
    ORA-01919: role 'WKUSER' does not exist
    drop user wkproxy cascade
    ERROR at line 1:
    ORA-01918: user 'WKPROXY' does not exist
    drop user wk_test cascade
    ERROR at line 1:
    ORA-01918: user 'WK_TEST' does not exist
    Clean up interMedia Text dictionary
    PL/SQL procedure successfully completed.
    Drop public synonyms
    PL/SQL procedure successfully completed.
    Removing all XDB resources (ACLs and folders)
    PL/SQL procedure successfully completed.
    SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    [SQLPlusAction] Error :
    <None>
    Repository Loader actionFinished
    Repository Loader actionStarting
    [SQLPlusAction] Oracle Home: D:\oracle\product\9204
    [SQLPlusAction] SQLPlus options:
    [SQLPlusAction] User name: SYS
    [SQLPlusAction] Connect string: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))
    [SQLPlusAction] DB role: SYSDBA
    [SQLPlusAction] SQL script file: E:\Disk4\repCA\ultrasearch\admin\wk0csys.sql
    [SQLPlusAction] Output :
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 4 13:20:11 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> ... creating user WKSYS
    SP2-0640: Not connected
    ... creating user WKPROXY
    SP2-0640: Not connected
    ... creating role WKUSER
    SP2-0640: Not connected
    ... granting privileges to WKSYS user
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    ... granting privileges to WKPROXY user
    SP2-0640: Not connected
    ... revoking all the privileges and roles from WKUSER role
    SP2-0640: Not connected
    ... granting privileges to WKUSER role
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    ... creating the default user WK_TEST
    SP2-0640: Not connected
    ... granting WKUSER role to WK_TEST
    SP2-0640: Not connected
    SQL>
    [SQLPlusAction] Error :
    <None>
    Repository Loader actionFinished
    Repository Loader actionStarting
    ERROR -
    arguments: '-thin' '-u' 'wksys/wksys@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))' '-f' '-s' '-g' 'PUBLIC' '-v' '-r' 'E:\Disk4\repCA\ultrasearch\lib\ultrasearch_db.jar'
    creating : resource META-INF/MANIFEST.MF
    SQL Error while connecting with thin driver to (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rappoports2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8))): ORA-01017: invalid username/password; logon denied
    exiting : could not open connection
    oracle.ifs.utils.action.ActionFailedException:
    arguments: '-thin' '-u' 'wksys/wksys@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8)))' '-f' '-s' '-g' 'PUBLIC' '-v' '-r' 'E:\Disk4\repCA\ultrasearch\lib\ultrasearch_db.jar'
    creating : resource META-INF/MANIFEST.MF
    SQL Error while connecting with thin driver to (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rappoports2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dwh8))): ORA-01017: invalid username/password; logon denied
    exiting : could not open connection
         at oracle.ifs.admin.actions.LoadJavaAction.processFinished(LoadJavaAction.java:107)
         at oracle.ifs.admin.actions.ForkProcessAction.perform(ForkProcessAction.java:186)
         at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java:303)
         at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:229)
         at java.lang.Thread.run(Thread.java:534)

    Will some one from Product Management please respond to this problem?
    When is the 9041 patch due?
    Thanks,
    Scott Rappoport, OCP

  • Client and GUI concurrently ?????

    hi everybody,
    i got a problem about gui and client. I have created a jframe and i want it to e client which connects to a server and gets the server's message. The problem is; when i created gui first, it starts to listen actions and client can't run, or if i run client class first, it starts to listen server message in a loop on run() method of thread() so action listener can't be catch. The simulation of code is below. Please help me.
    public class GUILogin extends JFrame{
    public static void main(String args[]) {
    new Client("localhost",9999);
              new GUILogin().setVisible(true);
    public class Client implements Runnable{
    public Client(String host, int port) {
                   new Thread(this).start();          
    //LISTENS THE SERVER MESSAGE
         public void run() {
              String str;
              while ((str = readline()) != null) {
                   System.out.println(str);
    I can't decide where to put client creation and gui creation.

    &#304; think thi solve my problem, thanks much...
    public class GUILogin extends JFrame implements Runnable{
    public GUILogin {
    initializeGUI();
              socket = new Socket(host, port);
              out = new PrintWriter(socket.getOutputStream(), true);
              in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    public static void main(String args[]) {
    new GUILogin().setVisible(true);
    new Thread(this).start();
    public void run() {
    String str;
    while ((str = readline()) != null) {
    System.out.println(str);
    }

  • How to populate a Error message in WebUI Screen

    Dear Experts,
    I have a small issue in Lead creation screen. I need to restrict the followup document if the lead end date is lesser than the system date, if the end date lesser than the system date system should through a error message in web Ui Screen and the lead follow up creation should be stoped.
    We found an enhancement spot in backend(GUI) of lead creation we raised the error message in the backend screen. Here its working fine, But we are not able to get any error message in WebUI lead creation screen.
    We written the code in CREATE_ORDER Method of lead creation in GUI ( tcode : CRMD_ORDER). We tried to debug the program using external debuger from webui but its not getting triggered.
    Pls suggest me, how to raise a error message for WEBUI lead follow up creation validation.
    Kindly do the needful.
    Reg,
    Anandhan

    HI Anandhan,
    Try this way,
    This should work.
    lr_global_messages type ref to cl_crm_genil_global_mess_cont,
            lr_core                 type ref to cl_crm_bol_core,
      "Instantiate the error message class.
      lr_core = cl_crm_bol_core=>get_instance( ).
      if lr_core is bound.
        lr_global_messages ?= lr_core->get_global_message_cont( ).
      endif.
            if lr_global_messages is bound.
              call method lr_global_messages->add_message
                exporting
                  iv_msg_type       = lv_msg_type
                  iv_msg_id         = '
                  iv_msg_number     =
                  iv_show_only_once = 'X'
                  iv_msg_v1         =
                  iv_msg_v2         =
            endif.

  • Informations about Oracle Application Express

    Hello,
    for my company I have to do a complete comparison of four tools which can be used for creation of GUIs:
    - Oracle Application Framework
    - Oracle Forms
    - Oracle Application Express
    - Microsoft .NET Framework
    Here in this topic I search for some facts about the ApEx:
    - How does it work (language, tools, ...)
    - Performance vs. the other three
    - Integretation into E-Business Suite
    - Possitbilites of the GUI
    - Screenshots, Links, etc.
    thx a lot

    The goal is to build a GUI where you can handle Tabledate, etc. Well you can certainly very easily do that with APEX.
    As for the disadvantages/advantages, what I would suggest is -
    Option 1
    Use -
    1) OTN (plus other Vendors websites)
    2) OTN Forums/Google Groups etc
    3) Google to find other sources (but with extreme care to validate/verify your sources)
    To research the information on your own. Unless you have experience of the products yourself, then this area is fraught with potential problems, as you are effectively quoting information that you have not verified yourself (hence the need to be very satisified that you trust the source of the information).
    Option 2
    Contact a respective expert in each of the technologies asking them to cite advantages and disadvantages of the tool they use.
    Again, there is a potential for 'bias' here, so you need to make sure that your 'source' is objective enough to be able to provide realistic disadvantages of the tool (at least in the context of your question)
    Option 3
    By far the best option in my view -
    Try and find someone who has used both/some/all of the tools you're trying to compare. Once again it needs to be someone who's opinion you can trust (otherwise what is the point?).
    The most difficult thing about having 2 people comparing products A and B, is that the person extolling the virtues of product A might not know that product B actually makes certain things easier and vice-versa. By having someone who has used BOTH products discuss the pros and cons then you get a much more 'real-world usability' view of the benefits and drawbacks.
    Just my thoughts, hope they help.
    John.

  • X-Fi Midi - No reverb effe

    I recently purchased an X-Fi Extreme Gamer sound card. I use Guitar Pro 5 and PowerTab
    midi sequencers to score songs. I immediately noticed that neither one of the sequencers
    can coax reverb out of the X-Fi, and chorus is barely audible when maxxed out. Other brand
    name sound cards work fine with these sequencer programs. I bought the X-Fi because I
    wanted the best wavetable General Midi sounds around. X-Fi came through on that end, but midi music with no effects is rather stale. I know about maxxing out the reverb and chorus
    in Vienna, but this is not a solution because the effects are not controllable by the
    sequencer.
    I have seen a few other threads where others were having the same problems using different
    sequencers, so I'm pretty sure the problem lies with the X-Fi card. Basically, I just want
    to know if this issue will ever be solved (i.e. updated drivers, etc.) or am I stuck with
    no midi effects? It appears that Creative is not very concerned about this issue, and
    will not even acknowledge it even exists. With the large amount of previous threads on this issue being ignored by Creative, there's no way that they are unaware of the problem.
    Creative, if this problem is never going to be addressed, please just let us music guys
    know, so we don't waste any more time trying to rememdy the issue!
    Any assistance would be greatly appreciated.

    Did you install the Creative Volume Panel, so you can switch to Audio Creation Mode GUI. In there you can do many things with midi like, 3DMIDI, ASIO, FX Return, ECT. Also, there's the sounfont bank manager. You can load sf2 files to enhance the midi patch sounds.
    I hope this somewhat helps

  • VMM 2012 R2 Template creation fails with sysprep error via the gui, but works in powershell?

    I'm in the process of trying to convert an existing gen1 VM (Win Server 2012 R2) to a VM template using VMM 2012 R2 with rollup 1. The creation keeps failing with the following error :-
    "Error
    (2901)The operation did not complete successfully because of a parameter or call sequence
    that is not valid.Recommended ActionEnsure
    that the parameters are valid, and then try the operation again."
    I've checked that the local administrator account for the machine being converted to a template and it is blank as expected and in an attempt to troubleshoot I've output the template creation script via the VMM GUI and executed the commands in order which appears
    to have resolved the problem, well the template finishes creation, i'm yet to deploy a machine via it?
    # Create VM Template Wizard Script
    # Script generated on Thursday, April 3, 2014 12:52:15 PM by Virtual Machine Manager
    # For additional help on cmdlet usage, type get-help <cmdlet name>
    $VM = Get-SCVirtualMachine -VMMServer localhost -Name "MyTemplate_Template" -ID "98299447-83e1-4d98-a558-a96ebafcf9b5"
    | where {$_.VMHost.Name -eq "myhost.mydomain.com"}
    $LibraryServer = Get-SCLibraryServer -VMMServer localhost | where {$_.Name -eq "my.library.com"}
    $GuestOSProfile = Get-SCGuestOSProfile -VMMServer localhost | where {$_.Name -eq "Windows Server 2012
    R2"}
    $OperatingSystem = Get-SCOperatingSystem -VMMServer localhost -ID "50b66974-c64a-4a06-b05a-7e6610c579a2"
    | where {$_.Name -eq "Windows Server 2012 R2 Standard"}
    $template = New-SCVMTemplate -Name "My Template" -RunAsynchronously -VM $VM -LibraryServer $LibraryServer
    -SharePath "\\mylibrary.mydomain.com\SCVMM Library\Templates\mytemplatedestination" -GuestOSProfile $GuestOSProfile -JobGroup d2f2f539-85da-4091-ab08-abe739fc4761 -ComputerName "*" -TimeZone 85  -FullName "Administrator"
    -OrganizationName "My Organisation" -Workgroup "WORKGROUP" -AnswerFile $null -OperatingSystem $OperatingSystem 
    Now the only fields that weren't populated when I ran through the gui were FullName and Organization? Before I changed the script these two fields were just set to ""? Is that what has potentially caused the issue are they both required fields?

    Your not the only one who can reproduce this. Did you ever find out what it was? I saw your post and tried your same work-around and it also worked for me via Powershell.

  • Dynamic gui creation

    Hi experts,
    I have a question regarding Web Dynpros possibilities to create dynamically gui. In my requirement I know only during runtime how many textboxes / checkboxes i will need.
    Is there a way to approach this in Web Dynpro ? With an jsp and the backend information it would be possible. Now I am asking me how I can make create something like a loop over a collection with the UI elements in Web Dynpro.
    Regards
    Flo

    This is probably more suited for the Web Dynpro forum.
    However, here's a document for Web Dynpro for java which contains a tutorial on Dynamic UI Manipulation:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/74cda090-0201-0010-6b91-f85b2489f765
    There's some tutorials for Web Dynpro for ABAP as well. A search for Dynamic UI Manipulation should give you enough hits on the topic.

  • HTML Content Creation GUI

    Hi,
    I have a customer who is looking at using Oracle Portal for their intranet. They would like their employees (who does not know html) to create their own content and publish it as a portlet. Will Oracle Portal have a GUI like Dreamweaver or Front Page to help the end user with developing html content?
    Thanks in advance.
    Cindy

    I have heard that the next release will use DreamWeaver as the html editor for html content. However, in seeing a preview at OOW in SF, it was not mentioned.
    But even if they do, your customer's employees will still need to learn html. This will become just as important a skill as knowing Word or Excel today, imho.
    msr

  • Multithreaded GUI creation

    Hi,
    I'm working on a project that uses EJB's for business work and Swing for the GUI.
    The major problem is that the EJB's calls can be quite long to return.
    As I am populating combos and tables from the results of these calls, it is problematic since it slows down the bring up of the GUI.
    I have implemented a threaded model of the component loading.
    I'd like to have your advise on this, if it's good or not and if there are possible improvements.
    Here are the two classes I have build from now :
    - this is the initComponents() part of the main class. It creats a PersonneChooser and waits until it has finished to load (in order to avoid NullPointerException due to calls to the paint() method of the main frame)
      private void initComponents() {
        try     {
          java.util.logging.Logger.getLogger("root").info("Creating PersonneChooser");
          PersonneChooser pc = new PersonneChooser();
          java.util.logging.Logger.getLogger("root").info("Done");
          pc.addActionListener(this);
          pc.getThread().join();
          this.getContentPane().add(pc);
          this.pack();
          this.setVisible(true);
        catch(SecurityException e) {
            System.out.println("Op not allowed");
      }- this is the PersonneChooser. It is a combo box populated with the objects returned from a call to an EJB method. It has an embeded renderer for the viewing.
    public
      class PersonneChooser
      extends javax.swing.JComboBox
      implements Runnable {
        private Thread _thread = null;
        public Thread getThread() {
          return _thread;
        public void run() {
          java.util.logging.Logger.getLogger("root").config("Assigning PersonneChooserRenderer");
          setRenderer(new PersonneChooserRenderer());
          java.util.logging.Logger.getLogger("root").config("Populating combo");
          try {
         Iterator i = HomeCaching.getInstance().getCalendrier().getAllPersonnes().iterator();
         while(i.hasNext()) {
           addItem(i.next());
          java.util.logging.Logger.getLogger("root").config("Done");
          catch(Exception e) {
         e.printStackTrace();
        public PersonneChooser() {
          _thread = new Thread(this);
          _thread.start();
    class PersonneChooserRenderer
      extends javax.swing.JLabel
      implements javax.swing.ListCellRenderer {
        public PersonneChooserRenderer() {
          setOpaque(true);
          setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
          setVerticalAlignment(javax.swing.SwingConstants.CENTER);
        public java.awt.Component getListCellRendererComponent(
          javax.swing.JList list,
          Object value,
          int index,
          boolean isSelected,
          boolean cellHasFocus) {
          if (isSelected) {
         setBackground(list.getSelectionBackground());
         setForeground(list.getSelectionForeground());
          else {
         setBackground(list.getBackground());
         setForeground(list.getForeground());
          PersonneValue pv = (PersonneValue)value;
          setText(pv.getNom() + " " + pv.getPrenom());
          return this;
    }thanks,
    ionel

    Hi,
    thanks for your reply.
    I have changed my code to
          java.util.logging.Logger.getLogger("root").info("Creating PersonneChooser");
          PersonneChooser pc = new PersonneChooser();
          java.util.logging.Logger.getLogger("root").info("Done");
          pc.addActionListener(this);
          this.getContentPane().add(pc);
          this.pack();
          this.setVisible(true);for the initComponents() part
    and
          java.util.logging.Logger.getLogger("root").config("Setting up self Action listening");
          addActionListener(this);
          java.util.logging.Logger.getLogger("root").config("Assigning PersonneChooserRenderer");
          setRenderer(new PersonneChooserRenderer());
          disable();But when I launch the app, i get an NPE
         [java] java.lang.NullPointerException
         [java]     at org.TechAdvantage.intranet.client.gui.PersonneChooserRenderer.getListCellRendererComponent(Unknown Source)
         [java]     at javax.swing.plaf.metal.MetalComboBoxButton.paintComponent(MetalComboBoxButton.java:143)
         [java]     at javax.swing.JComponent.paint(JComponent.java:804)
    ...I didn't understand what did you mean by "disable JComboBox in the event dispatch thread). Does the disable() method do this ? If so, why do I get the NPE ?
    thanks,
    ionel

  • Automatic creation of BP relationship while BP is created

    We are implementing CRM SALES and using Portal as the user interface.
    The requirement is that a Sales Rep should be able to see only the
    accounts and contacts (which is nothing but Business partners in the
    GUI side) that they have created when they list account using  "My
    Accounts" in Portal. We are configuring Portal in a such a way that
    "My Accoounts" is the only view available for Sales Rep portal.
    I have tested and found that if a relationship category of "is the
    reponsible employee" is created from  the sales rep to the Account OR
    Contact then that account or contact will be displayed in the "My
    Accounts" or "My Contact"view in Portal.
    But requesting a Sales Rep to create the relationship for every
    Account and Contact that they create in CRM will NOT be accpetable at
    all.
    Hence I am looking for an option with which a relationship of "is the
    Responsible Employee" can be created automatically when an account or
    contact is created by the Sales Rep.
    Please let me know your ideas.

    Hi Rajadurai,
    In the BADI - BUPA_FURTHER_CHECKS implement the method - CHECK_CENTRAL.
    The following code could serve your purpose:
    IF IV_ACTIVITY eq '01'. "Check if it is for creation
      CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
       EXPORTING
        IV_PARTNER_1 = IV_PARTNER
        IV_PARTNER_2 = LV_createdby "BP no of the creator
        IV_RELATIONSHIP = 'BUR011' "Code for emp. resp
        IV_DATE_FROM = SY-DATLO
        IV_DATE_TO = '99991231'.
    endif.

  • Creation of new product hierarchy and products in SAP CRM.

    Dear all,
    please help with resolving of following issue:
    In CRM system base hierarchies were replicated from R/3 system with materials. Current requirement is to create new materials in CRM directly (as standalone scenario). As far as I understand, I have to create new hierarchy with required list of set types in order to allow creation of products in CRM directly (product type = material). Can anybody describe changes in the system step by step, what should be changed and where?
    As a result I need to have a possibility to create products in CRM directly for sales scenario processing.
    Thank you in advance!

    Hi Jorge,
    thank you so much for your reply!
    Here what I tried to do:
    1. I created new category in hierarchy R3PRODSTYP, added 3 set types: COMM_PR_MAT, COMM_PR_SHTEXT, COMM_PR_UNIT as basic set types.
    2. In the SPRO - Cross-Application Components - SAP Product - Settings for Product Type - Number Assignment - Define Number Ranges for the Product Type "Material" I found my new product category is unassigned, so I assigned it to the "CRM Products" group.
    3. Farther I tried to create a new product for created category in CRM Web UI, but was not able to find it in the Base category search field. All categories correctly displayed from R3PRODSTYP, but my new category is absent. What can be the reason of category absence? Btw, it cannot be found even when I try to display whole hierarchy in Web UI, however, in SAP GUI, it can be seen via tcode comm_hierarchy.
    Here is the setup of hierarchies in the system:
    I have no idea how to check #3 "Ensure the hierarchy is assigned to CRM application".
    Can you please suggest, what should be changed in addition? Thank you!

  • Creation of Weblogic Domain in console mode not working

    Hi All,
    I've installed the Middleware home with ADF Runtime installer (Installer was 12.1.2.0.0). Now, I'm trying to create and configure a domain based on the JRF Template.  I'm executing the following command from Putty
    Step1. Navigate to MW_HOME/wlserver/common/bin
    Step2. execute "./config.sh -mode=console"
    Its throwing the following error :
    2014-07-21 17:03:41,643 WARNING [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Duplicate action cause encountered: java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    2014-07-21 17:03:41,643 SEVERE [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Wizard error cause
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
      at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
    at java.awt.Frame.<init>(Frame.java:420)
      at java.awt.Frame.<init>(Frame.java:385)
      at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1757)
      at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1832)
      at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1697)
      at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
      at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:796)
      at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:758)
      at com.oracle.cie.wizard.internal.cont.GUIContext.handleFatalErrorMessage(GUIContext.java:1141)
      at com.oracle.cie.wizard.internal.cont.GUITaskContainer$MethodRunner.run(GUITaskContainer.java:188)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    2014-07-21 17:03:41,643 WARNING [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Given state 'ERROR' does not follow current 'ERROR'
    This vaguely means that its trying to open a GUI wizard, which is not what I intended to do. The argument -mode=console should run the installer in console mode, but its trying to launch it in GUI mode.
    I searched online, but I have not found anything useful on this issue yet.
    Am I missing something?  Has anyone faced this problem before.
    Any thoughts on this would be helpful  !!
    Thanks,
    Shiva Shankar B N

    Weblogic 12C (12.1.2 to be precise), currently does not support console mode Domain creation. It supports only GUI mode and Silent mode.
    Possible solution to create a 12.1.2  Weblogic domain fully qualified enough to deploy ADF Applications :
    1. Install Xming, and enable X11 forwarding on Putty
    2. Silent Mode installation: The Configuration wizard. ./config.sh -mode=silent  -silent_script=xyz . Yes, it needs a silent script, not silent.xml. I did not try this way and instead resorted to WLST.  Still there are not enough blogs that clearly tell you how to install domain based on JRF template. I stumbled upon a similar OTN forum post.
    Here is the bunch of WLST commands if anyone is interested
    #======================================================================================= 
    # Open a domain template. 
    #======================================================================================= 
    readTemplate("/u01/app/mw/Oracle_Home/wlserver/common/templates/wls/wls.jar") 
    #======================================================================================= 
    # Update the domain to enable the WebLogic Server domain with JRF and EM. 
    #======================================================================================= 
    addTemplate('/u01/app/mw/Oracle_Home/oracle_common/common/templates/wls/oracle.jrf_template_12.1.2.jar') 
    addTemplate('/u01/app/mw/Oracle_Home/em/common/templates/wls/oracle.em_wls_template_12.1.2.jar') 
    #======================================================================================= 
    # Configure the Administration Server and SSL port. 
    # To enable access by both local and remote processes, you should not set the 
    # listen address for the server instance (that is, it should be left blank or not set). 
    # In this case, the server instance will determine the address of the machine and 
    # listen on it. 
    #======================================================================================= 
    cd('Servers/AdminServer') 
    set('ListenAddress','') 
    set('ListenPort', 7001) 
    create('AdminServer','SSL') 
    cd('SSL/AdminServer') 
    set('Enabled', 'True') 
    set('ListenPort', 7002) 
    #======================================================================================= 
    # Define the user password for weblogic. 
    #======================================================================================= 
    cd('/') 
    cd('Security/base_domain/User/weblogic') 
    # Please set password here before using this script, e.g. cmo.setPassword('value') 
    cmo.setPassword('password') 
    # Create and configure a JDBC Data Source, and sets the JDBC user.   Provide the Schema Credentials of the Service table
    # Get RCU Configuration using RCU service table (STB) schema credentials 
    cd('/') 
    cd('JDBCSystemResource/LocalSvcTblDataSource/JdbcResource/LocalSvcTblDataSource') 
    cd('JDBCDriverParams/NO_NAME_0') 
    set('DriverName','oracle.jdbc.OracleDriver') 
    set('URL','jdbc:oracle:thin:@XX.XX.XX.XX:1521/xe.yourdomain.com') 
    set('PasswordEncrypted', 'schemaPassword') 
    set('UseXADataSourceInterface', 'false') 
    cd('Properties/NO_NAME_0') 
    cd('Property/user') 
    cmo.setValue('DEV_STB') 
    getDatabaseDefaults() 
    #======================================================================================= 
    # Write the domain and close the domain template. 
    #======================================================================================= 
    setOption('OverwriteDomain', 'true') 
    writeDomain('/u01/data/user_projects/domains/your_domain') 
    closeTemplate() 
    #======================================================================================= 
    # Exit WLST. 
    #======================================================================================= 
    exit() 
    Hoping to write a blog post soon..
    Thanks,
    Shiva Shankar B N

  • Adding link on SAP Gui logon page

    Hi All,
    I have the problem that I need to add a link on the SAP Gui logon page.
    Within the transaction SE61 I have added the general text ZLOGIN_SCREEN_INFO.
    When I click on the Insert Command I have the possibility to create a link but the char. format F4 list is empty and it does not accept the link creation without it being filled.
    Does anybody have an idear?
    Thank you for your help
    Soeren

    Hi Juan,
    When I click on the Insert Command I have the possibility to create a link but the char. format F4 list is empty and it does not accept the link creation without it being filled.
    Would you please comment on this ?
    I have also seen the only possibility... but same issue...
    Regards.
    Rajesh Narkhede

Maybe you are looking for

  • Acrobat X Pro error "font not found" for all non-Adobe programs

    I'm running Win 7 64-bit, Extensis Suitcase 3 (current version). Having difficulty printing to PDF from all non-Adobe applications- everything from MS Word to Notepad. I can PDF fine from InDesign and Illustrator, whether using the File/Adobe PDF Pre

  • I stopped the plug-in and now I can't do anything on Firefox?

    I was on youtube and got a pop up saying that my plug-in stopped and I could continue or stop the plug-in. I clicked "stop plug-in" and now when I open Firefox, it does not let me type anything into the web browser or click on anything. Nothing is op

  • Adding Standard Text to the Selection Screen obtained using PARAMETERS

    Hi all, I have a report program which has the selection screen declared by the key word PARAMETERS. Now I need to make the changes to this program such that a Text Editor appears on the Selection Screen and has a Standard text that should be displaye

  • The recipient cannot download the PDF?

    I sent a PDF document and they cannot download the link to open the PDF document.

  • DVD Burner problem with P965 Platinum

    I have had on going issue with my DVD burner. When i try to play or esp burn a DVD the whole PC slows down and i am unable to open or run any other applications.  The Burner is connected via IDE cable and i have tried 2 other DVD Burners with all the