l24="india.cricket.java.dotnet.oracle" String mn=l24; StringTokenizer mn1=new StringTokenizer(l24,". "); String mn3=(String)mn1; nowon=new JLabel(mn3);//label nowon.setBounds(3,280,1580,600); nowon.setBackground(Color.cyan);
sir i want to add StringTokenizer element in JLabel component is it possible. Output should be like this india cricket java dotnet oracle
You can also use replace() method of String class.
String st="india.cricket.java.dotnet.oracle"; String str=st.replace("."," ");
It will also be helpful for you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.