1. Java doesn't have commands. Java has statements. The cases in a switch statement must be compile time constants, numeric up to Java 6; Java 7 introduced switching on String values.
2. Let's see what you've tried, in the form of an SSCCE <- link as that will help us to understand what exactly you're trying to achieve; 'switch command between tabs' probably makes sense to you, since you know what you're trying to do, but it's rather incomprehensible to me.
There are no new questions, but there may be new answers.
Joined: Sep 23, 2012
If i select 1st tab then one query should execute ....if 2nd then 2nd query and so on.....so wat will you suggest....how can i achieve that....