right if command
i have created a jcombobox which i have named pricerate here is its codepricerate =new JComboBox(priceStrings);pricerate.setSelectedIndex(0); pricerate.addActionListener(this);
String[] priceStrings ={"hour","Daily","Weekly","Monthly","Annual"};
im using the following if command to try and get some joptionpanes to be displayed when the user selects hour as the value and presses a submitbuttonif ("pricerate"(myString.equals("hour"))
does anyone know if this is the right way of creating the if command and if not what i need to change

