User Profile

Collapse

Profile Sidebar

Collapse
Petrosa
Petrosa
Last Activity: Mar 23 '08, 08:36 AM
Joined: Apr 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Petrosa
    replied to Website Crawler
    in Java
    Any help from anyone?
    See more | Go to post

    Leave a comment:


  • Petrosa
    replied to Website Crawler
    in Java
    By 3D i mean basic 3D shapes represent 1 node thats why i was asked to use VRML for the shapes. I will only need to represent a single website not many websites connected together thats why i said a tree. Maybe graph was a more appropriate term now that i think of it since websites can point to multple others not limited to sub-sites of them. Well, the instructions i got said tree ... guess they used a wrong term :)

    So, any libraries...
    See more | Go to post

    Leave a comment:


  • Petrosa
    replied to Website Crawler
    in Java
    Anyone can help with some directions?
    See more | Go to post

    Leave a comment:


  • Petrosa
    started a topic Website Crawler
    in Java

    Website Crawler

    Hey all,

    I have a project that i need to make a web crawler to find links in a website, and then represent the site's structure in a 3D tree. I have found an example at http://java.sun.com/developer/technicalArticl es/ThirdParty/WebCrawler/ for the crawler, but it seems very very old when hava was at 1.3 and seems some packages have changed abit and now it doesnt work properly. What modifications are needed to make that code work properly...
    See more | Go to post

  • Petrosa
    replied to Java string check
    in Java
    Thx for the answers Jos.

    I finally got it how to structure the patterns.

    if ((Pattern.match es(".*\\p{Digit }.*", passwordField.g etText())) != true)
    comments.setTex t(comments.getT ext() + "Your password does not contain Digits\n");

    if ((Pattern.match es(".*[!£$%^&*@?<>+_].*", passwordField.g etText())) != true)
    comments.setTex t(comments.getT ext()...
    See more | Go to post

    Leave a comment:


  • Petrosa
    replied to Java string check
    in Java
    Hmmm i got a closer look and tried this

    boolean b = Pattern.matches ("0" passwordField.g etText());
    if (!b) comments.setTex t("Your password does not contain Digits");

    I get it to work but i cant make the pattern to work for the whole number range.
    See more | Go to post

    Leave a comment:


  • Petrosa
    replied to Java string check
    in Java
    First i found it here
    http://www.javaregex.c om/tutorial.html

    then i also found it here
    http://java.sun.com/developer/technicalArticl es/releases/1.4regex/

    It starting to get realy confusing.... Is there any other way do what i am supposed to do?
    See more | Go to post

    Leave a comment:


  • Petrosa
    replied to Java string check
    in Java
    Ok i found some web pages explaining the use of regex, and i also created the window i want. Now, i try and use the regex package, i write something like this

    import java.util.regex .*;

    ..............

    private void checkDigits(jav a.awt.event.Act ionEvent evt) {
    Regex r = new Regex("[0-9]");
    r.search(passwo rdField.getText ());
    ...
    See more | Go to post

    Leave a comment:


  • Petrosa
    started a topic Java string check
    in Java

    Java string check

    Hi. i am new to java and just starting to learn how it works.
    My problem now is, i need a very simple code, that shows a window, where u enter a string, and by pressing a button, it runs various checks on that strings (if it contains uppercase chars, digits, special case chars etc) and then displays a text with the results. Also, if possible a way to check if a string is included in a line of a text file
    I am still confused how to...
    See more | Go to post
No activity results to display
Show More
Working...