hello,
I need one help sir.
If I am clicking one item(IPAddress) from JList , and click Connect button, then the selected item from the list ie. that IP address connects with its corresponding device through SNMP.
For this,
I create an object ,
Object firstSel = jList2.getSelectedValue();
but in snmp , the object is not accepted. it requirs String.
How can I convert Object to string in java.
If I am using string for getSelectedValue() , it gives error.
that is ,
String firstSel = jList2.getSelectedValue();
error is,
mainFrame.java:582: incompatible types
how can i fix this problem.
Thanks in advance.