ESW-520-24P - New GUI?

We're testing out the ESW series to replace the existing small business series for many of our customers. I was disappointed to see it run the same GUI as the SFE and SGE series switches! It's so clumsy and takes 10x as long to configure. And yes, we modify the clumsy config file offline but it's not that straight forward and always results in some type of error.
Anybody know when the ESW series switches will run the new GUI that the SF 300-24P new small business series runs? I gotta say, I'm very impressed with that GUI as it seem to collapse all the best features of all 3 previous GUI's together.
For now, we will plan on sticking with the SF 300 series until the ESW has the updated GUI.
Thanks
-robert

Hi Robert,
I also really like the new look and feel of the new 300 series.
We are trying to use a standard look and feel for the GUI on the small business products.
So the Small Business  Routers, WAPs.Switches, Security appliances  that are coming online and are online for sale at the moment,  all have the  same look and feel.  I think the ESW switch, because it is really only used on UC5XX will stay the way it is, I have heard no mention of upgrading it's GUI.
Anyway currently, the ESW family of switches  has an advantage of being managed by Cisco Configuration Assistant (CCA).
Robert, for other folks that look at this posting,  I will include a link below to the newer 300 series product comparison pages.
As you will have noticed already, the 300 series is generations ahead of the older  SRW series switches, even allows for Layer 3 routing between VLANs.
But for consistency of changeover from old part to new part , if you ordered in the past a part number  SRW224G4,   the 300 series replacement is now SRW224G4-K9-XX  (where XX can be UK  NA  EU.......... country code of some kind.)
http://www.cisco.com/en/US/products/ps10898/prod_models_comparison.html
regards Dave

Similar Messages

  • Can't Console into ESW-520-24P Switch, Need help.

    Hi,
    We have 3 ESW-520-24P series switches.
    I can not console them because by default they have a security profile attached into it for "Console Only" and It is set as "Deny".
    I can't modify or delete it because it's a default security policy.
    We can do console into ESW-540-24P series switches without any problems.
    Can someone share any solutions to gain console access for these switches?
    Any one from Cisco TAC support?
    Thanks in advance.
    Mansur.

    Hi Devicarr,
    Thanks for your reply.
    I can set the VLAN and Management IP address using the web interfaces.
    But when I am trying to connect it via console it is not responding. I reset it to factory default and then found from the web control panel/interface that the switch has an "Access Authentication" under that it has a "Access Profile" and the profile has a default or built in profile attached says "Console Only" and it has a rule like "IP Source = 0.0.0.0/32 Permit = Deny".
    I tried to delete or modify it even I tried to add a new rule to allow the console access but failed.
    Does this switch series "ESW-520-24P" by default Console disabled when manufactured or ELSE? Please provide me your valuable suggestions.
    Thanks in advance.
    Mansur.

  • About the Maximum of Source Ports to ONE Destination Port on ESW 520 24P

    Does the ESW 520 24P Support Mirroring 20 Ports Traffic to 1 Destination Port?

    Hi Andy
    No the ESW supports mirroring groups that can each mirror  8 ports to a destination port.
    This is great for normal problem determination purposes. I can guess at your application.
    regards dave

  • Support for WRT610N for ESW-520-24P-K9

    Hi to whom may concern,
    Can the following switches (ESW-520-24P-K9) x3 & ESW-520-48P-K9 able to support inline power for  74 x WRT610N  ?
    Thanks

    Hello batumibatumi,
    The ESW series does not have supported CLI feature. If you are looking for a CLI supported switch, please look into our Sx300 series.

  • Port suspended on Cisco ESW-520-24P

    Hi experts,
    I appreciate if anyone can help me with this. I just bought 4 units of Cisco ESW-520 24Ports switches. I did some testing and found out for PORTS 1 and 12 is in "Suspended" mode and thus not able to use.
    This not happened to 1 but all 4 switches. Why is this so ? Can anyone guide me to disable the ports from going into "suspended" mode automatically ? I wouldn't want the ports to be in "Suspension" mode when it goes live and thus block the desktops from having internet access.
    Thanks!

    Ok, I think I found out what the priblem is.  It seems that from factory, the ports come locked.  You have to go to Security>Traffic Control>Port Security and unlock each port.  Click the EDIT tab on the port you want to edit.  Then un-check the ENABLE TRAP> (apply).  Un-check LOCK INTERFACE> (apply).  Change LEARNING MODE to CLASSIC LOCK> (apply).  That should do it, but you'll have to do that for every port you want unlocked.  I'm not to sure if there is a way to unlock then all at once.
    Daniel

  • New UC560 and 3 ESW-540-24P Switches, best way to wire them

    We are installing a UC560 and 3 ESW-540-24P switches at a client in a couple of weeks.  I have installed many of these but have never installed one with multiple switches.  What is the best way to connect these together physically.  They will be all in the same rack.  Was just wondering the best way to "series" the switches together and what ports to plug them into.  Any suggestions would be appreciated.

    There is a Smart Design: Implementation Guide at :http://www.cisco.com/web/partners/sell/smb/tools_and_resources/smart_business_comm_system.html
    Implementation Guide
    Smart Business  Communications System 2.0 – Implementation Guide
    The implementation guide complements the SBCS 2.0 Design Guide through  the detailed guidance for SBCS 2.0 based Main Office deployment. This  document leverages the GUI configuration capability with easy-to-follow  step-by-step network deployment guidance using CCA v2.2. It also  includes an installation checklist to assist during the installation  process. It is recommended that users refer to the SBCS 2.0 Design Guide  for underlying design guidance and considerations.
    In this (figure 6) it shows a 48 and a 24 port switch connecting to each of the UC560 expansion ports (there are 2 GE ports for expansion on the 560).
    These could also be 2 48 port switches (96 total ports).  (In your scenario, I would connect 2 this way and the third to one of  those 2.)

  • ESW 520 802.1x re authentication problem

    Hello
    I have problem with ESW 520, on 802.1x authentication. The problem is when host authenticates successfully it works about couple of minutes, after it truest too authenticate again but it lags. On network interface it shows notification that if Failed authentication. On ACS I see only one authentication attempt which is successful. This problem is happening on Win7 and Win XP. If I unplug and plug cable it authenticates successfully, but then about couple of minutes it again lags. Switch sees port as authenticated. On Win7 event viewer I have following error:
                    Reason: 0x70004
                    Reason Text: The network stopped answering authentication requests
                    Error Code: 0x0
    If I connect same hosts on Catalyst 2960 switch, they work successfully.

    Hi  ngtransge
    There are  tree possible explanations about  why the authentications  fails.
    A)the network interface is shut down after failed computer authentication. You can see this on the switch as line protocol down for that port.
    To verify the client has a domain certificate:
    1. Click Start and click Run.
    2. Type mmc, and then press ENTER.
    3. On the File menu, click Add/Remove Snap-in.
    4. Click Certificates, click Add, select Computer account, and then click Next.
    5. Verify that Local computer: (the computer this console is running on) is selected, click Finish, and then click OK.
    6. In the console tree, double-click Certificates (Local Computer), double-click Personal, and then click Certificates.
    On a domain joined client, you should see a certificate here with Intended Purposes of Client Authentication. Make sure this certificate is not expired. If it is expired, you will need to regain connection to your CA to request a new one.
    B) You should check your switch's configuration, perhaps a port or some ports could be blocked by an access-list and interrupt the re authentication.
    C) If this two solutions don't work, you have to try to change the authentication method (PEAP-MSCHAPv2 or PEAP-EAP-TLS)
    Greetings, Johnnatn Rodriguez Miranda

  • ESW-520-24-K9 and Cisco Network Assistant

    HI,
    Is this switch model ESW-520-24-K9 is supported by Cisco Network Assistant.
    In the leatest release notes of CNA are supported Catalyst Express 520 Series Switches and this model WS-CE520-24TT-K9 is on the supported list.
    But the mention model above is EoL and the new one is ESW-520-24-K9.
    Thanks,
    Kamil

    Hi Dave,
    Thanks for your replay.
    Yes, you are right that this switch model is supported by CCA but not by Cisco Network Assistant.
    These programs are different in functionality.
    The situation has become clearer, since the customer bought the Cisco Catalyst 2960 series switch.
    Kamil

  • ESW 520 give priority to IP addresses

    I've got a LAN with private IPs for the computers, and public, static IPs for the VoIP phones. They are a Hosted VoIP provider, and I want to give priority to the public IPs with my ESW-520-48P switch. How do I implement that in this switch?
    I have no roles assigned on the ports and no VLANs setup either. I had tried segregating the VLANs first, but eliminated that route. It's all VLAN 1 now in the switch again. For some reason when I implemented VLAN 100 for voice, voice stopped working on the phones, but data was still fine.

    Hi netguy,
    QOS by rewriting the DSCP  (Differentiated Services Code Point) of a  IP phone range by;
    1. creating a ACL that specifies the IP range with reverse masking
    2. Attaching that ACL to a advanced Class MAP and then
    3. attach a class map to a QOS policy table that is configured to  set the DSCP to a new value
    4. attaching a QOS policy to a interface
    5 But you have a default Advanced QOS configuration already in place, so that has to be modified or deleted.
    It's  tough if you have never played with Advanced QOS  before or understand the last five statements.
    I guess your hosted IP phones have  DSCP (Differentiated Services Code Point)  settings already set on the IP phones or settings that  you can set directly to each IP phone ?
    If that is possible, why not just put the switch into basic QOS mode and then tell the switch to trust DSCP.
    That's far the easiest thing to do.
    regards Dave

  • ESW 520 ARP Inspection Problem

    Hello,
    I have observed strange behavior on ESW 520 switches, with ARP Inspection operation.  ARP inspection is configured with static ip to mac bindings, and it work.Problem is with logs, switch generates tons of ARP inspection logs, during network normal operation, but network endpoints are working well. These logs are same witch are generated during ARP poisoning in network. This operation was observed in older and new firmware.
    Here is sample log:
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e9 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:5a:85:2e SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.18
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e1 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:03 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.16
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e6 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:19:85:26 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.15
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e1 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:03 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.16
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e9 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:12:85:2e SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.18
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e5 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:10 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.10
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e6 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:11:85:26 SRC I
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.1
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e5 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:10 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.10
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e8 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:14:85:0c SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.14
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e3 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:3f SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.12
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e8 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:51:85:0c SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.14
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e5 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:80:f5:10 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.10
    Informational %ARPINSP-I-PCKTLOG: ARP packet dropped
    from port e6 with VLAN tag 10 and reason: packet verification failed SRC MAC 13:71:05:57:85:26 SRC IP
    0.0.0.0 DST MAC 00 :00:00:00:00:00 DST IP 10.0.10.15
    It seems switch dont like ARP request which are going to local network addresses., but in that vlan all host can communicate which each other.
    Do you have any idea what can be the problem ?

    Hi ngtransge,
    I will first come to say I do not know the answer. But, I will suspect the log entries are indicating a MAC address that arrived on the interface that did not recognize the IP or MAC address. If the MAC or IP is not found in the inspection list, it would revert to the DHCP snooping table if that is enabled.
    I would suspect these entries are coming from an untrusted interface then goes through validation.
    Can you show the trusted interfaces and the MAC bindings?
    Are the MAC addresses on the log entry meaningful to you in any way?
    Are those MAC addresses supposed to be going to a particular destination? Or conversely, are the MAC addresses supposed to be seen on an untrusted interface?
    -Tom

  • ESW 520 24port PoE Switch Crashes

    Hello,
      I have deployed a new ESW 520 24 port with a UC520 system at a new site. The switch has been crashing periodically. Here is the error from the logs:
    2147474387  11-Dec-2009 14:26:49   Emergency  %SYSLOG-F-OSFATAL:   FATAL ERROR: SW2M: ABORT DATA exception  ***** FATAL ERROR *****  SW Version  :  2.0.3 Version Date:  18-May-2009 Version Time:   19:32:29 Instruction            0x15F760 Exception vector       0x10 Program state register 0x20000013 0x0015f720 0x0091dfe0 0x06bf772c 0x014b6d0c %M NG_DIAG-E-DIAGATINIT: Init: Entries can't be created %MNG_DIAG-E-DIAGATINIT: Init: Wrong status received ***** END OF FATAL ERROR ***** 
    I have not had any luck finding anything on this. It seems to occur about every 2 weeks since we have placed it out there. Does anyone have any ideas on this ?

    Hi Rachel,
    Thank you for posting. You may need to change the Smartport role of the ESW switch port to match what you are connecting to. If you are connecting to another switch, the role should be switch. This is usually what causes the ports to block traffic.

  • Problem in connecting ESW 520 POE switches

    Hi
    New on ESW 520 switches
    Need help to configure the ESW 520  24 POE switches
    How can i configure the last port of 24 to oonnect to another ESW 520 24 port switches ?

    Why not use the GE ports at the far right to chain the switches one to the other from the UC540/UC560?  They are best for this and gives you an extra port on the switch this way.  Use straight thru ethernet cables.

  • Small Business- ESW-520-48P-K9

    I need to decide on few things regarding this switch before recommending this switch to my customer. I have the following questions that i need some expert advice.
    Questions
    1.) Does this switch support POE 15.4W on all 48 10/100 ports (ESW-520-48P-K9). The total power rating of this switch is only 370W and if this divided with 48 ports, each port can only drive 7W. So thus the confusion.
    2.)
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman","serif";}
    Can the ESW Series be Monitored and Managed using Ciscoworks LMS?
    3.) Is MGBSX1 compatible with GLC-SX-MM
    Thanks.

    I need to decide on few things
    regarding this switch before recommending this switch to my customer. I
    have the following questions that i need some expert advice.
    Questions
    1.)
    Does this switch support POE 15.4W on all 48 10/100 ports
    (ESW-520-48P-K9). The total power rating of this switch is only 370W
    and if this divided with 48 ports, each port can only drive 7W. So thus
    the confusion.
    2.) Can the ESW Series be Monitored and Managed using Ciscoworks LMS?
    3.) Is MGBSX1 compatible with GLC-SX-MM
    Thanks.
    Hi,
    Please see the attached document for your queries !!
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Using my new GUI component in an applet :Help!!!

    I am seeking help for the following
    Define class MyColorChooser as a new component so it can be reused in other applications or applets. We want to use the new GUI component as part of an applet that displays the current Color value.
    The following is the code of MyColorChooser class
    * a) We define a class called MyColorChooser that provides three JSlider
    * objects and three JTextField objects. Each JSlider represents the values
    * from 0 to 255 for the red, green and blue parts of a color.
    * We use wred, green and blue values as the arguments to the Color contructeur
    * to create a new Color object.
    * We display the current value of each JSlider in the corresponding JTextField.
    * When the user changes the value of the JSlider, the JTextField(s) should be changed
    * accordingly as weel as the current color.
    * b)Define class MyColorChooser so it can be reused in other applications or applets.
    * Use your new GUI component as part of an applet that displays the current
    * Color value.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    public class MyChooserColor extends JFrame{
         private int red, green, blue;  // color shade for red, green and blue
         private static Color myColor;  // color resultant from red, green and blue shades
         private JSlider mySlider [];      
         private JTextField textField [];
    // Panels for sliders, textfields and button components
         private JPanel mySliderPanel, textFieldPanel, buttonPanel;
    // sublcass objet of JPanel for drawing purposes
         private CustomPanel myPanel;
         private JButton okButton, exitButton;
         public MyChooserColor ()     
              super( "HOME MADE COLOR COMPONENT; composition of RGB values " );
    //       setting properties of the mySlider array and registering the events
              mySlider = new JSlider [3];
              ChangeHandler handler = new ChangeHandler();
              for (int i = 0; i < mySlider.length; i++)
              {     mySlider[i] = new JSlider( SwingConstants.HORIZONTAL,
                               0, 255, 255 );
                   mySlider.setMajorTickSpacing( 10 );
                   mySlider[i].setPaintTicks( true );
    //      register events for mySlider[i]
                   mySlider[i].addChangeListener( handler);                     
    //      setting properties of the textField array           
              textField = new JTextField [3];          
              for (int i = 0; i < textField.length; i++)
              {     textField[i] = new JTextField("100.00%", 5 );
                   textField[i].setEditable(false);
                   textField[i].setBackground(Color.white);
    // initial Background color of each slider and foreground for each textfield
    // accordingly to its current color shade
              mySlider[0].setBackground(
                        new Color ( mySlider[0].getValue(), 0, 0 ) );
              textField[0].setForeground(
                        new Color ( mySlider[0].getValue(), 0, 0 ) );           
              mySlider[1].setBackground(
                        new Color ( 0, mySlider[1].getValue(), 0 ) );
              textField[1].setForeground(
                        new Color ( 0, mySlider[1].getValue(), 0 ) );
              mySlider[2].setBackground(
                        new Color ( 0, 0, mySlider[2].getValue() ) );
              textField[2].setForeground(
                        new Color ( 0, 0, mySlider[2].getValue() ) );
    // initialize myColor to white
              myColor = Color.WHITE;
    // instanciate myPanel for drawing purposes          
              myPanel = new CustomPanel();
              myPanel.setBackground(myColor);
    // instanciate okButton with its inanymous class
    // to handle its related events
              okButton = new JButton ("OK");
              okButton.setToolTipText("To confirm the current color");
              okButton.setMnemonic('o');
              okButton.addActionListener(
                   new ActionListener(){
                        public void actionPerformed (ActionEvent e)
                        {     // code permetting to transfer
                             // the current color to the parent
                             // component backgroung color
                             //System.exit( 0 );     
    //      instanciate exitButton with its inanymous class
    //      to handle its related events           
              exitButton = new JButton("Exit");
              exitButton.setToolTipText("Exit the application");
              exitButton.setMnemonic('x');
              exitButton.addActionListener(
                        new ActionListener(){
                             public void actionPerformed (ActionEvent e)
                             {     System.exit( 0 );     
    // define the contentPane
              Container c = getContentPane();
              c.setLayout( new BorderLayout() );
    //     panel as container for sliders
              mySliderPanel = new JPanel(new BorderLayout());
    //      panel as container for textFields           
              textFieldPanel = new JPanel(new FlowLayout());
    //      panel as container for Jbuttons components           
              buttonPanel = new JPanel ();
              buttonPanel.setLayout( new BoxLayout( buttonPanel, BoxLayout.Y_AXIS ) );
    //add the Jbutton components to buttonPanel           
              buttonPanel.add(okButton);
              buttonPanel.add(exitButton);
    //     add the mySlider components to mySliderPanel
              mySliderPanel.add(mySlider[0], BorderLayout.NORTH);
              mySliderPanel.add(mySlider[1], BorderLayout.CENTER);
              mySliderPanel.add(mySlider[2], BorderLayout.SOUTH);
    //add the textField components to textFieldPanel     
              for (int i = 0; i < textField.length; i++){
                   textFieldPanel.add(textField[i]);
    // add the panels to the container c          
              c.add( mySliderPanel, BorderLayout.NORTH );
              c.add( buttonPanel, BorderLayout.WEST);
              c.add( textFieldPanel, BorderLayout.SOUTH);
              c.add( myPanel, BorderLayout.CENTER );
              setSize(500, 300);          
              show();               
    //     inner class for mySlider events handling
         private class ChangeHandler implements ChangeListener {          
              public void stateChanged( ChangeEvent e )
    // start by collecting the current color shade
    // for red , forgreen and for blue               
                   setRedColor(mySlider[0].getValue());
                   setGreenColor(mySlider[1].getValue());
                   setBlueColor(mySlider[2].getValue());
    //The textcolor in myPanel (subclass of JPanel for drawing purposes)
                   myPanel.setMyTextColor( ( 255 - getRedColor() ),
                             ( 255 - getGreenColor() ), ( 255 - getBlueColor() ) );
    //call to repaint() occurs here
                   myPanel.setThumbSlider1( getRedColor() );
                   myPanel.setThumbSlider2( getGreenColor() );
                   myPanel.setThumbSlider3( getBlueColor() );
    // display color value in the textFields (%)
                   DecimalFormat twoDigits = new DecimalFormat ("0.00");
                   for (int i = 0; i < textField.length; i++){
                        textField[i].setText("" + twoDigits.format(
                                  100.0* mySlider[i].getValue()/255) + " %") ;
    // seting the textcolor for each textField
    // and the background color for each slider               
                   textField[0].setForeground(
                             new Color ( getRedColor(), 0, 0 ) );
                   mySlider[0].setBackground(
                             new Color ( getRedColor(), 0, 0) );
                   textField[1].setForeground(
                             new Color ( 0, getGreenColor() , 0 ) );
                   mySlider[1].setBackground(
                             new Color ( 0, getGreenColor(), 0) );
                   textField[2].setForeground(
                             new Color ( 0, 0, getBlueColor() ) );
                   mySlider[2].setBackground(
                             new Color ( 0, 0, getBlueColor() ) );
    // color of myPanel background
                   myColor = new Color (getRedColor(),
                             getGreenColor(), getBlueColor());
                   myPanel.setBackground(myColor);               
    // set methods to set the basic color shade
         private void setRedColor (int r){
              red = ( (r >= 0 && r <= 255) ? r : 255 );
         private void setGreenColor (int g){
              green = ( (g >= 0 && g <= 255) ? g : 255 );
         private void setBlueColor (int b){
              blue = ( (b >= 0 && b <= 255) ? b : 255 );
    // get methods (return the basic color shade)
         private int getRedColor (){
              return red ;
         private int getGreenColor (){
              return green;
         private int getBlueColor (){
              return blue;
         public static Color getMyColor (){
              return myColor;
    // main method                
         public static void main (String args []){
              MyChooserColor app = new MyChooserColor();
              app.addWindowListener(
                        new WindowAdapter() {
                             public void windowClosing( WindowEvent e )
                             {     System.exit( 0 );
    // inner class CustomPanel for drawing purposes
         private class CustomPanel extends JPanel {
              private int thumbSlider1 = 255;
              private int thumbSlider2 = 255;
              private int thumbSlider3 = 255;
              private Color myTextColor;
              public void paintComponent( Graphics g )
                   super.paintComponent( g );
                   g.setColor(myTextColor);
                   g.setFont( new Font( "Serif", Font.TRUETYPE_FONT, 12 ) );
                   DecimalFormat twoDigits = new DecimalFormat ("0.00");
                   g.drawString( "The RGB values of the current color are : "
                             + "( "     + thumbSlider1 + " , " + thumbSlider2 + " , "
                             + thumbSlider3 + " )", 10, 40);
                   g.drawString( "The current background color is composed by " +
                             "the folllowing RGB colors " , 10, 60);
                   g.drawString( "Percentage of RED from slider1 : "
                        + twoDigits.format(thumbSlider1*100.0/255), 10, 80 );
                   g.drawString( "Percentage of GREEN from slider2 : "
                        + twoDigits.format(thumbSlider2*100.0/255), 10, 100 );
                   g.drawString( "Percentage of BLUE from slider3 : "
                        + twoDigits.format(thumbSlider3*100.0/255), 10, 120 );
    // call to repaint occurs here     
              public void setThumbSlider1(int th){
                   thumbSlider1 = (th >= 0 ? th: 255 );
                   repaint();
              public void setThumbSlider2(int th){
                   thumbSlider2 = (th >= 0 ? th: 255 );
                   repaint();
              public void setThumbSlider3(int th){
                   thumbSlider3 = (th >= 0 ? th: 255 );
                   repaint();
              public void setMyTextColor(int r, int g, int b){
                   myTextColor = new Color(r, g, b);
                   repaint();
    //The following method is used by layout managers
              public Dimension getPreferredSize()
              {     return new Dimension( 150, 100 );
    The following is the code of application that tests the component
    //Application used to demonstrating
    // the homemade GUI MyChooserColor component
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ShowMyColor extends JFrame {
         private JButton changeColor;
         private Color color = Color.lightGray;
         private Container c;
         MyChooserColor colorComponent;
         public ShowMyColor()
         {     super( "Using MyChooserColor" );
              c = getContentPane();
              c.setLayout( new FlowLayout() );
              changeColor = new JButton( "Change Color" );
              changeColor.addActionListener(
                        new ActionListener() {
                             public void actionPerformed( ActionEvent e )
                             {     colorComponent = new MyChooserColor ();
                                  colorComponent.show();
                                  color = MyChooserColor.getMyColor();
                                  if ( color == null )
                                       color = Color.lightGray;
                                  c.setBackground( color );
                                  c.repaint();
              c.add( changeColor );
              setSize( 400, 130 );
              show();
         public static void main( String args[] )
         {     ShowMyColor app = new ShowMyColor();
              app.addWindowListener(
                        new WindowAdapter() {
                             public void windowClosing( WindowEvent e )
                             {  System.exit( 0 );

    Yes, I want help for the missing code to add in actionPerformed method below. As a result, when you confirm the selected color (clicking the OK button), it will be transferred to a variable color of class ShowMyColor.
    // instanciate okButton with its inanymous class
    // to handle its related events
              okButton = new JButton ("OK");
              okButton.setToolTipText("To confirm the current color");
              okButton.setMnemonic('o');
              okButton.addActionListener(
                   new ActionListener(){
                        public void actionPerformed (ActionEvent e)
                        {     // code permetting to transfer
                             // the current color to the parent
                             // component backgroung color
                             //System.exit( 0 );     
              );

  • Adding Radio button & regular button to selection-screen without new gui

    Hi,
    Is there a way to add a radio button & regular button to a selection-screen without having to create a new gui, status and etc?
    Thanks,
    John

    Hi
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 4(30) TEXT-001 FOR FIELD P_1.
    SELECTION-SCREEN POSITION 1.
    PARAMETERS: P_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 4(30) TEXT-002 FOR FIELD P_2.
    SELECTION-SCREEN POSITION 1.
    PARAMETERS: P_2 RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END   OF LINE.
    Where the symbols text TEXT-001 and TEXT-002 have the label for the radiobuttons
    Max

Maybe you are looking for