0

if anyone can help me i need to create a JFrame that displays two text areas (JTextArea) in a grid layout (1 row, 2 columns), am not asking someone to do it for me but if anyone can help me with basics of JFrame that would be helpful thx

2
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by Ezzaral
0

woow i cant believe i didnt thought of that , thx Ezzaral the tutorial is very helpful

0

thx man that is really nice source ,well i got another question about a method that i am writing now well the method should check if a string is starts with a capital letter or number and the rest of the string is number the method should return true else should be false ..that wht i wrote but it not workin right :S i dont know why ..any idea ?

private static boolean isValidRoomNumber(String text) 
   {
        StringTokenizer st = new StringTokenizer(text,"|");
            String bu = st.nextToken();  
            String ro = st.nextToken();
            int si = Integer.parseInt(st.nextToken()); 


    char chr =text.charAt(0);
    boolean test1=Character.isUpperCase(chr);
    boolean test2=Character.isDigit(chr);




        if(test1==true || test2==true)
        {
        for (int i = 1;i < text.length();i++) 
            {
        if(Character.isDigit(text.charAt(i))==true)

            }//for
        }//if
        return true;
        else
            return false;

Edited by mike_2000_17: Fixed formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.