Can't make the tuxconfig;the error is cmdtux_cat:866:ERROR;tmloadcf Severe error found

(the enviroment i use is tuxedo8.1 in win2k and the machine name is huangbiqing)
my config article is ubbconfig.
#     (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident     "@(#) samples/atmi/simpapp/ubbsimple     $Revision: 1.5 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY          123456
DOMAINID     simpapp
MASTER          simple
MAXACCESSERS     10
MAXSERVERS     5
MAXSERVICES     10
MODEL          SHM
LDBAL          N
*MACHINES
"HUANGBIQING"     LMID=simple
          APPDIR="c:\bea\tuxedo8.1\samples\atmi\simpapp"
          TUXCONFIG="c:\bea\tuxedo8.1\samples\atmi\simpapp\tuxconfig"
          TUXDIR="c:\bea\tuxedo8.1"
and the setenv.cmd is
rem     (c) 2003 BEA Systems, Inc. All Rights Reserved.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All Rights Reserved
rem THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
rem BEA Systems, Inc.
rem The copyright notice above does not evidence any
rem actual or intended publication of such source code.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All rights reserved
rem ident     "@(#) apps/simpapp/setenv.cmd     $Revision: 1.5 $"
set TUXDIR="c:\bea\tuxedo8.1"
set APPDIR="c:\bea\tuxedo8.1\samples\atmi\simpapp"
set PATH="c:\bea\tuxedo8.1\bin";%APPDIR%;%PATH%
set LD_LIBRARY="c:\bea\tuxedo8.1\lib"
set TUXCONFIG="c:\bea\tuxedo8.1\samples\atmi\simpapp\tuxconfig"
then in dos command line
first i type :setenv
second i typy :tmloadcf -y ubbconfig
but the result is cmdtux_cat:866:ERROR;tmloadcf Severe error found
how can solve this problem!help!thanks!
[setenv.cmd]

How about looking at the sample you started with?
samples/atmi/simpapp/ubbsimple
And check the documentation:
http://edocs.bea.com/tuxedo/tux81/index.htm
http://edocs.bea.com/tuxedo/tux81/rf5/rf5.htm
http://edocs.bea.com/tuxedo/tux81/rf5/rf588.htm#1531911
think about: GROUPS, SERVERS, *SERVICES
Wayne
Betty Huang wrote:
Thanks for your respond.
Can you tell me which mandatory section of ubbconfig i had missed?
how to take care about the syntax errors?It comes behind the error cmdtux_cat:866.
"roopesh" <[email protected]> wrote:
please take a sample ubbconfig file which comes with tuxedo.
the ubbconfig which you are using is missing mandatory sections of ubbconfig
and also take care about the syntax errors.
"betty huang" <[email protected]> wrote:
(the enviroment i use is tuxedo8.1 in win2k and the machine name ishuangbiqing)
my config article is ubbconfig.
#     (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident     "@(#) samples/atmi/simpapp/ubbsimple     $Revision: 1.5 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the <bracketed> items with the appropriate values.
*RESOURCES
IPCKEY          123456
DOMAINID     simpapp
MASTER          simple
MAXACCESSERS     10
MAXSERVERS     5
MAXSERVICES     10
MODEL          SHM
LDBAL          N
*MACHINES
"HUANGBIQING"     LMID=simple
          APPDIR="c:\bea\tuxedo8.1\samples\atmi\simpapp"
          TUXCONFIG="c:\bea\tuxedo8.1\samples\atmi\simpapp\tuxconfig"
          TUXDIR="c:\bea\tuxedo8.1"
and the setenv.cmd is
rem     (c) 2003 BEA Systems, Inc. All Rights Reserved.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All Rights Reserved
rem THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
rem BEA Systems, Inc.
rem The copyright notice above does not evidence any
rem actual or intended publication of such source code.
rem Copyright (c) 2000 BEA Systems, Inc.
rem All rights reserved
rem ident     "@(#) apps/simpapp/setenv.cmd     $Revision: 1.5 $"
set TUXDIR="c:\bea\tuxedo8.1"
set APPDIR="c:\bea\tuxedo8.1\samples\atmi\simpapp"
set PATH="c:\bea\tuxedo8.1\bin";%APPDIR%;%PATH%
set LD_LIBRARY="c:\bea\tuxedo8.1\lib"
set TUXCONFIG="c:\bea\tuxedo8.1\samples\atmi\simpapp\tuxconfig"
then in dos command line
first i type :setenv
second i typy :tmloadcf -y ubbconfig
but the result is cmdtux_cat:866:ERROR;tmloadcf Severe error found
how can solve this problem!help!thanks!

Similar Messages

  • My husband uses adobe cs5. The clone tool isn't working and after resetting the tools adobe bridge now goes to picasa. How can we make the clone tool work and have bridge go to cs5 not picasa?

    My husband uses adobe cs5. The clone tool isn't working and after resetting the tools adobe bridge now goes to picasa. How can we make the clone tool work and have bridge go to cs5 not picasa?

    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How can i make the text go vertically in numbers

    How can I make the text vertical in numbers?  I have merged the cells and cannot find an option for making it go vertical as opposed to horizontal.

    I already gave two tools to fit this kind of needs.
    tip #1 :
    --{code}
    --[SCRIPT write_vertically]
    Enregistrer le script en tant que Script : write_vertically.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Saisir dans une cellule le mot à écrire verticalement puis le sélectionner.
    ATTENTION, il ne faut pas sélectionner la cellule mais le mot qui doit apparaitre surligné.
    Aller au menu Scripts , choisir Numbers puis choisir “write_vertically”
    Le script colle dans la cellule le mot apès avoir inséré un return entre tous les caractères.
    Pour mon usage personnel j'associe un raccourci à ce script grace à FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: write_vertically.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a cell, type a word to write vertically then select it.
    CAUTION, don’t select the cell but the word which must be highlighted.
    Go to the Scripts Menu, choose Numbers, then choose “write_vertically”
    The script insert in the cell the word after inserting a return between every characters.
    For my own use, I link a shortcut to the script thank to FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/17
    2012/01/01 no longer use a local variable, use result
    --=====
    on run
    Clear the clipboard *)
      set the clipboard to ""
    Copy the selection in the clipboard *)
              my raccourci("Numbers", "c", "c")
    Loop waiting that the clipboard is really filled *)
              repeat
                        try
                                  if (the clipboard as text) is not "" then exit repeat
                        on error
                        end try
              end repeat
    Extract the clipboard's content *)
      the clipboard as text
    Insert return between every characters *)
              my recolle(every character of result, return)
    Fill the clipboard with the edited string *)
      set the clipboard to result
    Paste in the cell *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    on recolle(l, d)
              local oTIDs, t
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end recolle
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
              tell application a to activate
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    tip #2 :
    --{code}
    --[SCRIPT rotate_cell_contents]
    Enregistrer le script en tant que Script : rotate_cell_contents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une cellule dont le texte doit être tourné de 90 degrés.
    Aller au menu Scripts , choisir Numbers puis choisir “rotate_cell_contents”
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: rotate_cell_contents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell whose contents must be rotated for 90 degrees.
    Go to the Scripts Menu, choose Numbers, then choose “rotate_cell_contents”
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/06/23
    2011/06/26 -- No longer use an auxiliary text box. Now keep the text attributes.
    2012/01/31 -- edited for Lion
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2
              local le_texte, la_largeur, la_hauteur, myNewDoc
              my activateGUIscripting()
    Extract properties of the source/target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of column colNum1 & name of row rowNum1)
              end tell
    Cut*)
              my raccourci("Numbers", "x", "c")
    Trigger Preview *)
              tell application "System Events"
                        if "Preview" is not in (name of every application process) then launch application "Preview"
              end tell
      delay 0.2 -- required
    New document from the clipboard *)
              my raccourci("Preview", "n", "c")
    Rotate to left *)
              my raccourci("Preview", "l", "c")
    Copy *)
              my raccourci("Preview", "c", "c")
    Quit *)
              my raccourci("Preview", "q", "c")
              (system attribute "sys2") < 7
              if result then
    Click the [Don't Save] button in the warning sheet *)
                        tell application "Preview" to activate
                        tell application "System Events" to tell application process "Preview" to tell window 1
                                  name of buttons
                                  repeat 50 times
                                            delay 0.1
                                            if exists sheet 1 then exit repeat
                                  end repeat
                                  tell sheet 1 to click button 2
                        end tell
              end if
    Back to Numbers *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
      -- just reset the focus on the table
              end tell
    Paste in the cell *)
              my raccourci("Numbers", "v", "c")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if

  • How can I make the marker event pulse width longer in NI-FGEN?

    I want to generate a marker event on PF0 line using NI-FGEN.I can set the marker event pulse width but when I was trying to make the pulse width units as 65 I was getting an  error-1074115931. 
    How can I make the marker event pulse width longer without using script as I am using PXI-5412 which is not supporting Script.
    Can anyone help me out in doing the same?

    Unforunately, as you mentioned, the PXI-5412 does not support scripting mode. This will limit you to 1 marker using sequence mode. However, the PXI-5421 and PXI-5422 would allow the functionality. 
    As far as making the pulse width longer, and as the KnowledgeBase Article that you linked to discusses, I don't think it will be possible to create a marker as long as 1us - 10ms using just the Marker properties and without using scripting. You can still try to do this with property nodes and see if you can get a usable result. Start with an example such as "Fgen Arb Waveform Marker" and use the "Marker Position" value to set the start time (you would want 0 here it looks like), and then "Marker Event Pulse Width Value" to change the pulse length, but again I am afraid you will probably reach the maximum of 640 ns here. If you're not able to get this going with the property node, you will need either a FGEN card that supports scripting or another card that does Digital I/O to accomplish this. 
    Thanks!
    Stephanie S.
    Application Engineer
    National Instruments

  • How can I make the "Enable to sink files" warning to go away?

    How can I make the "Enable to sink files" warning to go away?

    Hi Airmiranda
    The following doc should help: http://helpx.adobe.com/creative-cloud/kb/creative-cloud-files-wont-connect.html
    "If you are using Creative Cloud Connection preview, you will either see “Unable to sync file(s)” or “Unable to connect...” errors. To disable these error alerts, you can Turn Sync Off or Quit Creative Cloud Connection."
    Thanks
    Bev

  • OS X Mavericks made dock background color too light to easily see app indicator lights. Can I make the dock background darker?

    Can I make the dock background color darker to see app. indicator lights easier. Installing OS X Mavericks made it too light.

    Hacking around, I found a fix to my own zombified terminal problem.
    Control-click (right-click) on the tab to the terminal and one of the options is 'MOVE TAB TO NEW WINDOW'
    On moving the terminal tab to the new window, the old terminal window is responsive again (Allowing scrolling to old error messages, etc.)
    You have to do this for each tab in the zombified window one-at-a-time
    but you can drag all new windows back together as tabs to a single window if you feel like it.
    Before trying this, I tried a lot of the other click options and the other options were as unresponsive as the whole terminal window with the problem.

  • Can i make the filed as option in BDC

    Hi Experts,
    I have written an BDC data upload program for Tcode AS91. i have used 15 fileds in recording. now if the user upload the text files which contain 15 fileds , then evrthing working fine,
    but in the latest verion of Tcode AS91, one filed( Tax jurisdiction code) is removed,
    now my question can i make the filed (Tax jurisdiction code) as option in my program,  because in few cases the user not uploading the data for filed  (Tax jurisdiction code).
    Regards
    niru

    Hi Bob,
    thanks for your reply..yes iam able to see the errors in session.
    my question is can i modify the program like , make the filed Tax jurisdiction as option , if the upload file does not conatin filed then i should dont upload , if it exists in upload file i need to update it.
    is it possible to write the logic according to the requirement?
    code:
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'ANLZ-TXJCD'.
        PERFORM bdc_field       USING 'ANLZ-KOSTL'
                                      wa_rec-kostl_007.
        PERFORM bdc_field       USING 'ANLZ-WERKS'
                                      wa_rec-werks_008.
        PERFORM bdc_field       USING 'ANLZ-CAUFN'
                                      wa_rec-caufn.
        PERFORM bdc_field       USING 'ANLZ-TXJCD'
    thanks in advance.
    regards
    niru

  • If i bought my ipod touch 4th generation in Phoenix,Az,USA can I make the guaranty valid in Mexico (Culiacan,Sinaloa,Mexico)?

    If i bought my ipod touch 4th generation in Phoenix,Az,USA can I make the guaranty valid in Mexico (Culiacan,Sinaloa,Mexico)?

    If you're getting the "iTunesSetup.exe is not a valid 32bit application" error, it likely means that you may have tried to download the 64bit iTunes Setup exe (application).  You mentioned you couldn't download because you have dialup, However, even with dialup you should be able to download iTunes.  You can go to the following apple site and scroll down and click on the Windows 32 bit version of iTunes.  On dialup it will take a while to download, but it can be done.  See if this helps.
    http://support.apple.com/kb/DL1103

  • I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    - Have you tried a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Try syncing  the iPod to your computer. Then delete from iTunes and sync. that should delete it from the iPod. Then redownload it.

  • ICal problem--an error box comes up an won't go away. I can't close the error box and I can't activate the calendar because the error box needs to be cleared. There is no place on the box to click in order to close it.

    I have a problem that just affects iCal. An error box popped up when I was trying to past something into a new appointment. The box blocks me from using the calendar. I can't clear the error box. It has nowhere to click to close it. Nothing happpens when I right click it. I have force closed iCal, but when it reopens the error box is still there blocking any use of the calendar. There is no error number, just a copy of the text I was trying to paste.

    Try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I am frustrated with how my cursor jumps around while typing.  How can I make the arrow follow the cursor so this doesn't happen?

    Macbook Pro with OSX Yosemite:  I am frustrated that when using Word for Mac, the cursor keeps jumping around all over the page.  How can I make the pointer follow the cursor so this stops?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • Can we make the jobs invisible in SM37

    Hi All,
    Can we make the background  jobs invisible in SM37.
    If we run our current report in production, it will schedule around 1000 jobs in SM37.
    My requirement is to make these 1000 jobs invisible....
    <removed_by_moderator>
    Read the "Rules of Engagement"
    Thanks in advance
    Tajuddeen
    Edited by: Juan Reyes on Nov 27, 2008 10:00 PM

    i think and extension can do..just before producing the report[program for SM37] output clear the table entries.
    for this u need to change the standard code..
    but haven't checked its possible or not.. i means exits available or not...
    rather i would say.. copy SM37's program to a Z program.. do this requirement... create a tcode say ZSM37 for it..
    then this ZSM37 can solve your purpose.

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

Maybe you are looking for

  • Lack of Support

    I wasn't sure if I should complain about my recurring problem of the iTunes store not automatically renewing my pass for the Daily Show or whether I should complain about the complete snub from Apple support. I've tried to contact Apple several diffe

  • Current update to iMac issues

    On 05/10/13 I received a update notice for the Mac , I selected to down load and install, my Mac is less then 6 mths old,  it then stated to "restart the Mac" I selected ok, the Mac shut down and then restarted but with out sound, doesn't prompt when

  • IP SLA Applications

    Hye to All, I have a question:  when an equipment can perform the following operations, dhcp dns echo ftp http jitter pathEcho pathJitter tcpConnect udpEcho Does it mean that it can do all of the following (below) : • Echo Operations – Echo – Path Ec

  • MS SS 7.0 - 8.1.7: "Migrate Table Data" N/A

    Hello there, We're currently attempting to do a migration from MS SQL Server 7.0 to Oracle 8.1.7, using Migration Workbench. I'm able to capture, and create the model successfully, but when going to Object->Migrate Table Data it is grayed out and dis

  • Import of DIR-Originals

    Hi, could someone provide me information about the best way to import originals into a DMS? The DIR will be created by a DOCMAS IDOC. From a migration-project i know that it's possible to send the original-content with the DOCMAS idoc (ALE). In my ca