├── 42858973_1055767081251472_1695515851370790912_n.jpg ├── LICENSE.MD ├── MIT ├── README.md ├── build.xml ├── build ├── built-jar.properties └── classes │ ├── .netbeans_automatic_build │ ├── .netbeans_update_resources │ ├── main.class │ └── selenium │ ├── App.class │ ├── Constants.class │ ├── NewJFrame$1.class │ ├── NewJFrame$2.class │ ├── NewJFrame$3.class │ ├── NewJFrame.class │ └── NewJFrame.form ├── lib ├── CopyLibs │ └── org-netbeans-modules-java-j2seproject-copylibstask.jar ├── byte-buddy-1.8.15.jar ├── client-combined-3.14.0-sources.jar ├── client-combined-3.14.0.jar ├── commons-codec-1.10.jar ├── commons-exec-1.3.jar ├── commons-logging-1.2.jar ├── guava-25.0-jre.jar ├── httpclient-4.5.5.jar ├── httpcore-4.4.9.jar ├── nblibraries.properties ├── okhttp-3.10.0.jar └── okio-1.14.1.jar ├── manifest.mf ├── nbproject ├── build-impl.xml ├── genfiles.properties ├── private │ └── private.xml ├── project.properties └── project.xml ├── selenium.jar └── src └── main ├── App.java ├── Gui.java ├── NewJFrame.form ├── NewJFrame.java └── constants.java /42858973_1055767081251472_1695515851370790912_n.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/42858973_1055767081251472_1695515851370790912_n.jpg -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Leo Bogod 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Multithreaded LoL-Ping-Checker 4 | 5 | A Simple League of Legends multithreaded ping checker that uses InetAddress to accurately determine ping. 6 | Client pings the server 100 times to get an average ping and determine the max and minimum ranges. 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | #Features 19 | 20 | -Ping Checker (Max, Min, Average) 21 | 22 | -IP Checker 23 | 24 | 25 | - Ping text color 26 | 27 | -Supports 5 servers 28 | 29 | 30 | Download https://github.com/LeoBogod22/Java-LoL-ping-checker/blob/master/selenium.jar 31 | 32 | 33 | 34 | ![alt text](42858973_1055767081251472_1695515851370790912_n.jpg) 35 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project selenium. 12 | 13 | 73 | 74 | -------------------------------------------------------------------------------- /build/built-jar.properties: -------------------------------------------------------------------------------- 1 | #Mon, 24 Sep 2018 16:00:30 -0500 2 | 3 | 4 | C\:\\Users\\User\\Documents\\NetBeansProjects\\selenium= 5 | -------------------------------------------------------------------------------- /build/classes/.netbeans_automatic_build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/.netbeans_automatic_build -------------------------------------------------------------------------------- /build/classes/.netbeans_update_resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/.netbeans_update_resources -------------------------------------------------------------------------------- /build/classes/main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/main.class -------------------------------------------------------------------------------- /build/classes/selenium/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/App.class -------------------------------------------------------------------------------- /build/classes/selenium/Constants.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/Constants.class -------------------------------------------------------------------------------- /build/classes/selenium/NewJFrame$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/NewJFrame$1.class -------------------------------------------------------------------------------- /build/classes/selenium/NewJFrame$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/NewJFrame$2.class -------------------------------------------------------------------------------- /build/classes/selenium/NewJFrame$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/NewJFrame$3.class -------------------------------------------------------------------------------- /build/classes/selenium/NewJFrame.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/build/classes/selenium/NewJFrame.class -------------------------------------------------------------------------------- /build/classes/selenium/NewJFrame.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 |
157 | -------------------------------------------------------------------------------- /lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar -------------------------------------------------------------------------------- /lib/byte-buddy-1.8.15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/byte-buddy-1.8.15.jar -------------------------------------------------------------------------------- /lib/client-combined-3.14.0-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/client-combined-3.14.0-sources.jar -------------------------------------------------------------------------------- /lib/client-combined-3.14.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/client-combined-3.14.0.jar -------------------------------------------------------------------------------- /lib/commons-codec-1.10.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/commons-codec-1.10.jar -------------------------------------------------------------------------------- /lib/commons-exec-1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/commons-exec-1.3.jar -------------------------------------------------------------------------------- /lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /lib/guava-25.0-jre.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/guava-25.0-jre.jar -------------------------------------------------------------------------------- /lib/httpclient-4.5.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/httpclient-4.5.5.jar -------------------------------------------------------------------------------- /lib/httpcore-4.4.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/httpcore-4.4.9.jar -------------------------------------------------------------------------------- /lib/nblibraries.properties: -------------------------------------------------------------------------------- 1 | libs.CopyLibs.classpath=\ 2 | ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar 3 | libs.CopyLibs.displayName=\u0417\u0430\u0434\u0430\u0447\u0430 CopyLibs 4 | libs.CopyLibs.prop-version=2.0 5 | -------------------------------------------------------------------------------- /lib/okhttp-3.10.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/okhttp-3.10.0.jar -------------------------------------------------------------------------------- /lib/okio-1.14.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/lib/okio-1.14.1.jar -------------------------------------------------------------------------------- /manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /nbproject/build-impl.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | Must set src.dir 259 | Must set test.src.dir 260 | Must set build.dir 261 | Must set dist.dir 262 | Must set build.classes.dir 263 | Must set dist.javadoc.dir 264 | Must set build.test.classes.dir 265 | Must set build.test.results.dir 266 | Must set build.classes.excludes 267 | Must set dist.jar 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | Must set javac.includes 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | No tests executed. 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | Must set JVM to use for profiling in profiler.info.jvm 748 | Must set profiler agent JVM arguments in profiler.info.jvmargs.agent 749 | 750 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | Must select some files in the IDE or set javac.includes 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | To run this application from the command line without Ant, try: 1027 | 1028 | java -jar "${dist.jar.resolved}" 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | Must select one file in the IDE or set run.class 1076 | 1077 | 1078 | 1079 | Must select one file in the IDE or set run.class 1080 | 1081 | 1082 | 1087 | 1088 | 1089 | 1090 | 1091 | 1092 | 1093 | 1094 | 1095 | 1096 | 1097 | 1098 | 1099 | 1100 | 1101 | 1102 | 1103 | 1104 | 1105 | 1106 | Must select one file in the IDE or set debug.class 1107 | 1108 | 1109 | 1110 | 1111 | Must select one file in the IDE or set debug.class 1112 | 1113 | 1114 | 1115 | 1116 | Must set fix.includes 1117 | 1118 | 1119 | 1120 | 1121 | 1122 | 1123 | 1128 | 1131 | 1132 | This target only works when run from inside the NetBeans IDE. 1133 | 1134 | 1135 | 1136 | 1137 | 1138 | 1139 | 1140 | 1141 | Must select one file in the IDE or set profile.class 1142 | This target only works when run from inside the NetBeans IDE. 1143 | 1144 | 1145 | 1146 | 1147 | 1148 | 1149 | 1150 | 1151 | This target only works when run from inside the NetBeans IDE. 1152 | 1153 | 1154 | 1155 | 1156 | 1157 | 1158 | 1159 | 1160 | 1161 | 1162 | 1163 | 1164 | This target only works when run from inside the NetBeans IDE. 1165 | 1166 | 1167 | 1168 | 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1189 | 1190 | 1191 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | 1202 | Must select one file in the IDE or set run.class 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | Must select some files in the IDE or set test.includes 1209 | 1210 | 1211 | 1212 | 1213 | Must select one file in the IDE or set run.class 1214 | 1215 | 1216 | 1217 | 1218 | Must select one file in the IDE or set applet.url 1219 | 1220 | 1221 | 1222 | 1227 | 1228 | 1229 | 1230 | 1231 | 1232 | 1233 | 1234 | 1235 | 1236 | 1237 | 1238 | 1239 | 1240 | 1241 | 1242 | 1243 | 1244 | 1245 | 1246 | 1247 | 1248 | 1249 | 1250 | 1251 | 1252 | 1253 | 1254 | 1255 | 1256 | 1257 | 1258 | 1259 | 1260 | 1261 | 1262 | 1263 | 1264 | 1265 | 1266 | 1271 | 1272 | 1273 | 1274 | 1275 | 1276 | 1277 | 1278 | 1279 | 1280 | 1281 | 1282 | 1283 | 1284 | 1285 | 1286 | 1287 | 1288 | 1289 | 1290 | 1291 | 1292 | 1293 | 1294 | 1295 | 1296 | 1297 | Must select some files in the IDE or set javac.includes 1298 | 1299 | 1300 | 1301 | 1302 | 1303 | 1304 | 1305 | 1306 | 1307 | 1308 | 1309 | 1314 | 1315 | 1316 | 1317 | 1318 | 1319 | 1320 | 1321 | Some tests failed; see details above. 1322 | 1323 | 1324 | 1325 | 1326 | 1327 | 1328 | 1329 | 1330 | Must select some files in the IDE or set test.includes 1331 | 1332 | 1333 | 1334 | Some tests failed; see details above. 1335 | 1336 | 1337 | 1338 | Must select some files in the IDE or set test.class 1339 | Must select some method in the IDE or set test.method 1340 | 1341 | 1342 | 1343 | Some tests failed; see details above. 1344 | 1345 | 1346 | 1351 | 1352 | Must select one file in the IDE or set test.class 1353 | 1354 | 1355 | 1356 | Must select one file in the IDE or set test.class 1357 | Must select some method in the IDE or set test.method 1358 | 1359 | 1360 | 1361 | 1362 | 1363 | 1364 | 1365 | 1366 | 1367 | 1368 | 1369 | 1374 | 1375 | Must select one file in the IDE or set applet.url 1376 | 1377 | 1378 | 1379 | 1380 | 1381 | 1382 | 1387 | 1388 | Must select one file in the IDE or set applet.url 1389 | 1390 | 1391 | 1392 | 1393 | 1394 | 1395 | 1396 | 1401 | 1402 | 1403 | 1404 | 1405 | 1406 | 1407 | 1408 | 1409 | 1410 | 1411 | 1412 | 1413 | 1414 | 1415 | 1416 | 1417 | 1418 | 1419 | 1420 | 1421 | 1422 | 1423 | 1424 | 1425 | 1426 | 1427 | 1428 | 1429 | 1430 | 1431 | 1432 | 1433 | 1434 | 1435 | 1436 | 1437 | 1438 | 1439 | 1440 | 1441 | 1442 | 1443 | 1444 | 1445 | 1446 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=91fac65e 2 | build.xml.script.CRC32=b3c3ae90 3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=91fac65e 7 | nbproject/build-impl.xml.script.CRC32=c326f7b4 8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 9 | -------------------------------------------------------------------------------- /nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | file:/C:/Users/User/Documents/NetBeansProjects/selenium/src/selenium/Selenium.java 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processor.options= 4 | annotation.processing.processors.list= 5 | annotation.processing.run.all.processors=true 6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 7 | build.classes.dir=${build.dir}/classes 8 | build.classes.excludes=**/*.java,**/*.form 9 | # This directory is removed when the project is cleaned: 10 | build.dir=build 11 | build.generated.dir=${build.dir}/generated 12 | build.generated.sources.dir=${build.dir}/generated-sources 13 | # Only compile against the classpath explicitly listed here: 14 | build.sysclasspath=ignore 15 | build.test.classes.dir=${build.dir}/test/classes 16 | build.test.results.dir=${build.dir}/test/results 17 | # Uncomment to specify the preferred debugger connection transport: 18 | #debug.transport=dt_socket 19 | debug.classpath=\ 20 | ${run.classpath} 21 | debug.test.classpath=\ 22 | ${run.test.classpath} 23 | # \u0424\u0430\u0439\u043b\u044b \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 build.classes.dir, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430 jar 24 | dist.archive.excludes= 25 | # This directory is removed when the project is cleaned: 26 | dist.dir=dist 27 | dist.jar=${dist.dir}/selenium.jar 28 | dist.javadoc.dir=${dist.dir}/javadoc 29 | excludes= 30 | file.reference.byte-buddy-1.8.15.jar=lib\\byte-buddy-1.8.15.jar 31 | file.reference.client-combined-3.14.0-sources.jar=lib\\client-combined-3.14.0-sources.jar 32 | file.reference.client-combined-3.14.0.jar=lib\\client-combined-3.14.0.jar 33 | file.reference.commons-codec-1.10.jar=lib\\commons-codec-1.10.jar 34 | file.reference.commons-exec-1.3.jar=lib\\commons-exec-1.3.jar 35 | file.reference.commons-logging-1.2.jar=lib\\commons-logging-1.2.jar 36 | file.reference.guava-25.0-jre.jar=lib\\guava-25.0-jre.jar 37 | file.reference.httpclient-4.5.5.jar=lib\\httpclient-4.5.5.jar 38 | file.reference.httpcore-4.4.9.jar=lib\\httpcore-4.4.9.jar 39 | file.reference.okhttp-3.10.0.jar=lib\\okhttp-3.10.0.jar 40 | file.reference.okio-1.14.1.jar=lib\\okio-1.14.1.jar 41 | includes=** 42 | jar.compress=false 43 | javac.classpath=\ 44 | ${file.reference.byte-buddy-1.8.15.jar}:\ 45 | ${file.reference.client-combined-3.14.0-sources.jar}:\ 46 | ${file.reference.client-combined-3.14.0.jar}:\ 47 | ${file.reference.commons-codec-1.10.jar}:\ 48 | ${file.reference.commons-exec-1.3.jar}:\ 49 | ${file.reference.commons-logging-1.2.jar}:\ 50 | ${file.reference.guava-25.0-jre.jar}:\ 51 | ${file.reference.httpclient-4.5.5.jar}:\ 52 | ${file.reference.httpcore-4.4.9.jar}:\ 53 | ${file.reference.okhttp-3.10.0.jar}:\ 54 | ${file.reference.okio-1.14.1.jar} 55 | # Space-separated list of extra javac options 56 | javac.compilerargs= 57 | javac.deprecation=false 58 | javac.external.vm=true 59 | javac.processorpath=\ 60 | ${javac.classpath} 61 | javac.source=1.8 62 | javac.target=1.8 63 | javac.test.classpath=\ 64 | ${javac.classpath}:\ 65 | ${build.classes.dir} 66 | javac.test.processorpath=\ 67 | ${javac.test.classpath} 68 | javadoc.additionalparam= 69 | javadoc.author=false 70 | javadoc.encoding=${source.encoding} 71 | javadoc.noindex=false 72 | javadoc.nonavbar=false 73 | javadoc.notree=false 74 | javadoc.private=false 75 | javadoc.splitindex=true 76 | javadoc.use=true 77 | javadoc.version=false 78 | javadoc.windowtitle= 79 | main.class=selenium.NewJFrame 80 | manifest.file=manifest.mf 81 | meta.inf.dir=${src.dir}/META-INF 82 | mkdist.disabled=false 83 | platform.active=default_platform 84 | run.classpath=\ 85 | ${javac.classpath}:\ 86 | ${build.classes.dir} 87 | # Space-separated list of JVM arguments used when running the project. 88 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 89 | # To set system properties for unit tests define test-sys-prop.name=value: 90 | run.jvmargs= 91 | run.test.classpath=\ 92 | ${javac.test.classpath}:\ 93 | ${build.test.classes.dir} 94 | source.encoding=UTF-8 95 | src.dir=src 96 | test.src.dir=test 97 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | selenium 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | .\lib\nblibraries.properties 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /selenium.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoBogod22/Java-LoL-ping-checker/1b4a89e922ed6ed1a5fe26ec667968abf4888c38/selenium.jar -------------------------------------------------------------------------------- /src/main/App.java: -------------------------------------------------------------------------------- 1 | ackage selenium; 2 | import java.awt.Color; 3 | import javax.swing.text.AttributeSet; 4 | import javax.swing.text.SimpleAttributeSet; 5 | import javax.swing.text.StyleConstants; 6 | import javax.swing.text.StyleContext; 7 | import java.net.InetAddress; 8 | import java.util.GregorianCalendar; 9 | import java.util.*; 10 | 11 | import javax.swing.JProgressBar; 12 | /** 13 | * 14 | * @author User 15 | */ 16 | public class App{ 17 | 18 | 19 | public static void sendPingRequest2(String ipAddress, javax.swing.JTextPane jTextPane1,javax.swing.JTextPane jTextPane2,javax.swing.JTextField jTextField1) { 20 | 21 | try { 22 | for (int i=0; i<10; i++){ 23 | InetAddress inet = InetAddress.getByName(ipAddress); 24 | long finish = 0; 25 | long start = new GregorianCalendar().getTimeInMillis(); 26 | System.out.println("Sending Ping Request to " + ipAddress); 27 | long sum =0; 28 | 29 | List list = new ArrayList<>(); 30 | 31 | 32 | 33 | if (inet.isReachable(5000)) { 34 | 35 | finish = new GregorianCalendar().getTimeInMillis(); 36 | long value= finish-start; 37 | 38 | list.add(value); 39 | long lowest = Collections.min(list); 40 | System.out.println("value" + lowest); 41 | sum = value+value/10; 42 | if (value < 250) { 43 | color = Color.green; 44 | } else if (value < 500) { 45 | color = Color.yellow; 46 | } else { 47 | color = Color.red; 48 | } 49 | 50 | jTextPane1.setText("Ping RTT: " + value + "ms"); 51 | jTextPane2.setText("average ping: " + sum + "ms"); 52 | jTextField1.setText("" + lowest + "ms"); 53 | jTextPane1.setBackground(color); 54 | jTextPane2.setForeground(color); 55 | jTextField1.setBackground(color); 56 | 57 | } else { 58 | System.out.println(ipAddress + " NOT reachable."); 59 | } 60 | } 61 | }catch (Exception e) { 62 | System.out.println("Exception:" + e.getMessage()); 63 | } 64 | } 65 | 66 | public static void main(String[] args) { 67 | App m = new App(); 68 | NewJFrame jf = new NewJFrame(); 69 | 70 | 71 | 72 | } 73 | 74 | void sendPingRequest(String string) { 75 | throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/Gui.java: -------------------------------------------------------------------------------- 1 | package selenium; 2 | 3 | import java.net.InetAddress; 4 | import java.util.GregorianCalendar; 5 | import javax.swing.JProgressBar; 6 | import javax.swing.JTextField; 7 | 8 | /** 9 | * 10 | * @author User 11 | */ 12 | public class NewJFrame extends javax.swing.JFrame { 13 | 14 | /** 15 | * Creates new form NewJFrame 16 | */ 17 | public NewJFrame() { 18 | initComponents(); 19 | } 20 | 21 | /** 22 | * This method is called from within the constructor to initialize the form. 23 | * WARNING: Do NOT modify this code. The content of this method is always 24 | * regenerated by the Form Editor. 25 | */ 26 | @SuppressWarnings("unchecked") 27 | 28 | 29 | 30 | 31 | // 32 | private void initComponents() { 33 | 34 | jButton1 = new javax.swing.JButton(); 35 | jRadioButton1 = new javax.swing.JRadioButton(); 36 | jRadioButton2 = new javax.swing.JRadioButton(); 37 | jScrollPane1 = new javax.swing.JScrollPane(); 38 | jTextPane1 = new javax.swing.JTextPane(); 39 | jRadioButton3 = new javax.swing.JRadioButton(); 40 | jProgressBar1 = new javax.swing.JProgressBar(); 41 | jScrollPane2 = new javax.swing.JScrollPane(); 42 | jTextPane2 = new javax.swing.JTextPane(); 43 | jLabel1 = new javax.swing.JLabel(); 44 | jLabel2 = new javax.swing.JLabel(); 45 | jTextField1 = new javax.swing.JTextField(); 46 | jLabel3 = new javax.swing.JLabel(); 47 | jRadioButton5 = new javax.swing.JRadioButton(); 48 | jRadioButton4 = new javax.swing.JRadioButton(); 49 | 50 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 51 | 52 | jButton1.setText("CheckPing"); 53 | jButton1.addActionListener(new java.awt.event.ActionListener() { 54 | public void actionPerformed(java.awt.event.ActionEvent evt) { 55 | jButton1ActionPerformed(evt); 56 | } 57 | }); 58 | 59 | jRadioButton1.setText("EUW"); 60 | 61 | jRadioButton2.setText("KOR"); 62 | jRadioButton2.addActionListener(new java.awt.event.ActionListener() { 63 | public void actionPerformed(java.awt.event.ActionEvent evt) { 64 | jRadioButton2ActionPerformed(evt); 65 | } 66 | }); 67 | 68 | jScrollPane1.setViewportView(jTextPane1); 69 | 70 | jRadioButton3.setText("EUNE"); 71 | jRadioButton3.addActionListener(new java.awt.event.ActionListener() { 72 | public void actionPerformed(java.awt.event.ActionEvent evt) { 73 | jRadioButton3ActionPerformed(evt); 74 | } 75 | }); 76 | 77 | jScrollPane2.setViewportView(jTextPane2); 78 | 79 | jLabel1.setText("Ping"); 80 | 81 | jLabel2.setText("Average Ping"); 82 | 83 | jTextField1.addActionListener(new java.awt.event.ActionListener() { 84 | public void actionPerformed(java.awt.event.ActionEvent evt) { 85 | jTextField1ActionPerformed(evt); 86 | } 87 | }); 88 | 89 | jLabel3.setText("Minimum Ping "); 90 | 91 | jRadioButton5.setText("LAN"); 92 | 93 | jRadioButton4.setText("NA"); 94 | 95 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 96 | getContentPane().setLayout(layout); 97 | layout.setHorizontalGroup( 98 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 99 | .addGroup(layout.createSequentialGroup() 100 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 101 | .addGroup(layout.createSequentialGroup() 102 | .addGap(114, 114, 114) 103 | .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)) 104 | .addGroup(layout.createSequentialGroup() 105 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 106 | .addGroup(layout.createSequentialGroup() 107 | .addGap(19, 19, 19) 108 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 109 | .addComponent(jLabel2) 110 | .addComponent(jLabel3))) 111 | .addGroup(layout.createSequentialGroup() 112 | .addContainerGap() 113 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) 114 | .addGap(39, 39, 39) 115 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 116 | .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE) 117 | .addComponent(jScrollPane1) 118 | .addComponent(jTextField1))) 119 | .addGroup(layout.createSequentialGroup() 120 | .addGap(138, 138, 138) 121 | .addComponent(jButton1))) 122 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 123 | .addGroup(layout.createSequentialGroup() 124 | .addGap(18, 18, 18) 125 | .addComponent(jRadioButton1) 126 | .addGap(18, 18, 18) 127 | .addComponent(jRadioButton2) 128 | .addGap(18, 18, 18) 129 | .addComponent(jRadioButton3) 130 | .addGap(18, 18, 18) 131 | .addComponent(jRadioButton5) 132 | .addGap(18, 18, 18) 133 | .addComponent(jRadioButton4) 134 | .addGap(0, 79, Short.MAX_VALUE)) 135 | ); 136 | layout.setVerticalGroup( 137 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 138 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 139 | .addGap(69, 69, 69) 140 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 141 | .addComponent(jRadioButton1) 142 | .addComponent(jRadioButton2) 143 | .addComponent(jRadioButton3) 144 | .addComponent(jRadioButton5) 145 | .addComponent(jRadioButton4)) 146 | .addGap(47, 47, 47) 147 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 148 | .addGroup(layout.createSequentialGroup() 149 | .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE) 150 | .addGap(58, 58, 58)) 151 | .addGroup(layout.createSequentialGroup() 152 | .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 153 | .addGap(18, 18, 18) 154 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 155 | .addComponent(jTextField1) 156 | .addComponent(jLabel3)) 157 | .addGap(11, 11, 11))) 158 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 159 | .addGroup(layout.createSequentialGroup() 160 | .addGap(8, 8, 8) 161 | .addComponent(jLabel2)) 162 | .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 163 | .addGap(26, 26, 26) 164 | .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 165 | .addGap(39, 39, 39) 166 | .addComponent(jButton1) 167 | .addContainerGap()) 168 | ); 169 | 170 | pack(); 171 | } // 172 | 173 | private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) { 174 | 175 | 176 | 177 | 178 | 179 | 180 | // TODO add your handling code here: 181 | 182 | // TODO add your handling code here: 183 | } 184 | 185 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { 186 | // TODO add your handling code here: 187 | 188 | App m = new App(); 189 | 190 | 191 | if (jRadioButton1.isSelected()) { 192 | 193 | 194 | 195 | Thread t1 = new Thread(new progress(jProgressBar1)); 196 | t1.start(); 197 | Thread t2 = new Thread(new Runnable() { 198 | @Override 199 | public void run() { 200 | m.sendPingRequest2("104.160.141.3", jTextPane1, jTextPane2, jTextField1); // Insert some method call here. 201 | } 202 | 203 | 204 | 205 | }); 206 | 207 | t2.start(); 208 | 209 | t1.start(); 210 | } 211 | if (jRadioButton2.isSelected()) { 212 | 213 | 214 | Thread t1 = new Thread(new progress(jProgressBar1)); 215 | t1.start(); 216 | Thread t2 = new Thread(new Runnable() { 217 | @Override 218 | public void run() { 219 | m.sendPingRequest2("104.160.156.1", jTextPane1, jTextPane2, jTextField1); // Insert some method call here. 220 | } 221 | 222 | 223 | 224 | }); 225 | 226 | t2.start(); 227 | } 228 | 229 | 230 | if (jRadioButton3.isSelected()) { 231 | 232 | 233 | 234 | 235 | Thread t1 = new Thread(new progress(jProgressBar1)); 236 | t1.start(); 237 | Thread t2 = new Thread(new Runnable() { 238 | @Override 239 | public void run() { 240 | m.sendPingRequest2("104.160.142.3", jTextPane1, jTextPane2, jTextField1); // Insert some method call here. 241 | } 242 | 243 | 244 | 245 | }); 246 | 247 | t2.start(); 248 | 249 | 250 | } 251 | 252 | if (jRadioButton4.isSelected()) { 253 | 254 | 255 | 256 | 257 | Thread t1 = new Thread(new progress(jProgressBar1)); 258 | t1.start(); 259 | Thread t2 = new Thread(new Runnable() { 260 | @Override 261 | public void run() { 262 | m.sendPingRequest2("104.160.136.3", jTextPane1, jTextPane2, jTextField1); // Insert some method call here. 263 | } 264 | 265 | 266 | 267 | }); 268 | 269 | t2.start(); 270 | 271 | 272 | } 273 | 274 | if (jRadioButton5.isSelected()) { 275 | 276 | 277 | 278 | 279 | Thread t1 = new Thread(new progress(jProgressBar1)); 280 | t1.start(); 281 | Thread t2 = new Thread(new Runnable() { 282 | @Override 283 | public void run() { 284 | m.sendPingRequest2("104.160.131.3", jTextPane1, jTextPane2, jTextField1); // Insert some method call here. 285 | } 286 | 287 | 288 | 289 | }); 290 | 291 | t2.start(); 292 | 293 | 294 | } 295 | 296 | 297 | 298 | } 299 | 300 | private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) { 301 | // TODO add your handling code here: 302 | } 303 | 304 | private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) { 305 | // TODO add your handling code here: 306 | } 307 | 308 | 309 | 310 | 311 | /** 312 | * @param args the command line arguments 313 | */ 314 | public static void main(String args[]) { 315 | /* Set the Nimbus look and feel */ 316 | // 317 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 318 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 319 | */ 320 | try { 321 | for (javax.swing.UIManager.LookAndFeelInfo info: javax.swing.UIManager.getInstalledLookAndFeels()) { 322 | if ("Nimbus".equals(info.getName())) { 323 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 324 | break; 325 | } 326 | } 327 | } catch (ClassNotFoundException ex) { 328 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 329 | } catch (InstantiationException ex) { 330 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 331 | } catch (IllegalAccessException ex) { 332 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 333 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 334 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 335 | } 336 | // 337 | 338 | /* Create and display the form */ 339 | java.awt.EventQueue.invokeLater(new Runnable() { 340 | public void run() { 341 | new NewJFrame().setVisible(true); 342 | } 343 | }); 344 | } 345 | 346 | // Variables declaration - do not modify 347 | private javax.swing.JButton jButton1; 348 | private javax.swing.JLabel jLabel1; 349 | private javax.swing.JLabel jLabel2; 350 | private javax.swing.JLabel jLabel3; 351 | private javax.swing.JProgressBar jProgressBar1; 352 | private javax.swing.JRadioButton jRadioButton1; 353 | private javax.swing.JRadioButton jRadioButton2; 354 | private javax.swing.JRadioButton jRadioButton3; 355 | private javax.swing.JRadioButton jRadioButton4; 356 | private javax.swing.JRadioButton jRadioButton5; 357 | private javax.swing.JScrollPane jScrollPane1; 358 | private javax.swing.JScrollPane jScrollPane2; 359 | private javax.swing.JTextField jTextField1; 360 | private javax.swing.JTextPane jTextPane1; 361 | private javax.swing.JTextPane jTextPane2; 362 | // End of variables declaration 363 | 364 | 365 | static Constants a; 366 | 367 | 368 | } 369 | -------------------------------------------------------------------------------- /src/main/NewJFrame.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 |
157 | -------------------------------------------------------------------------------- /src/main/NewJFrame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package selenium; 7 | 8 | import java.net.InetAddress; 9 | import java.util.GregorianCalendar; 10 | import javax.swing.JProgressBar; 11 | import javax.swing.JTextField; 12 | 13 | /** 14 | * 15 | * @author User 16 | */ 17 | public class NewJFrame extends javax.swing.JFrame { 18 | 19 | /** 20 | * Creates new form NewJFrame 21 | */ 22 | public NewJFrame() { 23 | initComponents(); 24 | } 25 | 26 | /** 27 | * This method is called from within the constructor to initialize the form. 28 | * WARNING: Do NOT modify this code. The content of this method is always 29 | * regenerated by the Form Editor. 30 | */ 31 | @SuppressWarnings("unchecked") 32 | 33 | 34 | 35 | 36 | // 37 | private void initComponents() { 38 | 39 | jButton1 = new javax.swing.JButton(); 40 | jRadioButton1 = new javax.swing.JRadioButton(); 41 | jRadioButton2 = new javax.swing.JRadioButton(); 42 | jScrollPane1 = new javax.swing.JScrollPane(); 43 | jTextPane1 = new javax.swing.JTextPane(); 44 | jRadioButton3 = new javax.swing.JRadioButton(); 45 | jProgressBar1 = new javax.swing.JProgressBar(); 46 | jScrollPane2 = new javax.swing.JScrollPane(); 47 | jTextPane2 = new javax.swing.JTextPane(); 48 | jLabel1 = new javax.swing.JLabel(); 49 | jLabel2 = new javax.swing.JLabel(); 50 | jTextField1 = new javax.swing.JTextField(); 51 | jLabel3 = new javax.swing.JLabel(); 52 | jRadioButton5 = new javax.swing.JRadioButton(); 53 | jRadioButton4 = new javax.swing.JRadioButton(); 54 | jLabel4 = new javax.swing.JLabel(); 55 | 56 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 57 | 58 | jButton1.setText("CheckPing"); 59 | jButton1.addActionListener(new java.awt.event.ActionListener() { 60 | public void actionPerformed(java.awt.event.ActionEvent evt) { 61 | jButton1ActionPerformed(evt); 62 | } 63 | }); 64 | 65 | jRadioButton1.setText("EUW"); 66 | 67 | jRadioButton2.setText("KOR"); 68 | jRadioButton2.addActionListener(new java.awt.event.ActionListener() { 69 | public void actionPerformed(java.awt.event.ActionEvent evt) { 70 | jRadioButton2ActionPerformed(evt); 71 | } 72 | }); 73 | 74 | jScrollPane1.setViewportView(jTextPane1); 75 | 76 | jRadioButton3.setText("EUNE"); 77 | jRadioButton3.addActionListener(new java.awt.event.ActionListener() { 78 | public void actionPerformed(java.awt.event.ActionEvent evt) { 79 | jRadioButton3ActionPerformed(evt); 80 | } 81 | }); 82 | 83 | jScrollPane2.setViewportView(jTextPane2); 84 | 85 | jLabel1.setText("Ping"); 86 | 87 | jLabel2.setText("Average Ping"); 88 | 89 | jTextField1.addActionListener(new java.awt.event.ActionListener() { 90 | public void actionPerformed(java.awt.event.ActionEvent evt) { 91 | jTextField1ActionPerformed(evt); 92 | } 93 | }); 94 | 95 | jLabel3.setText("Minimum Ping "); 96 | 97 | jRadioButton5.setText("LAN"); 98 | 99 | jRadioButton4.setText("NA"); 100 | 101 | jLabel4.setFont(new java.awt.Font("Tempus Sans ITC", 0, 18)); // NOI18N 102 | jLabel4.setForeground(new java.awt.Color(51, 51, 216)); 103 | jLabel4.setText("Leos Ping Checker "); 104 | jLabel4.setMaximumSize(new java.awt.Dimension(100, 14)); 105 | 106 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 107 | getContentPane().setLayout(layout); 108 | layout.setHorizontalGroup( 109 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 110 | .addGroup(layout.createSequentialGroup() 111 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 112 | .addGroup(layout.createSequentialGroup() 113 | .addGap(114, 114, 114) 114 | .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)) 115 | .addGroup(layout.createSequentialGroup() 116 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 117 | .addGroup(layout.createSequentialGroup() 118 | .addGap(19, 19, 19) 119 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 120 | .addComponent(jLabel2) 121 | .addComponent(jLabel3))) 122 | .addGroup(layout.createSequentialGroup() 123 | .addContainerGap() 124 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) 125 | .addGap(39, 39, 39) 126 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 127 | .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE) 128 | .addComponent(jScrollPane1) 129 | .addComponent(jTextField1))) 130 | .addGroup(layout.createSequentialGroup() 131 | .addGap(138, 138, 138) 132 | .addComponent(jButton1))) 133 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 134 | .addGroup(layout.createSequentialGroup() 135 | .addGap(18, 18, 18) 136 | .addComponent(jRadioButton1) 137 | .addGap(18, 18, 18) 138 | .addComponent(jRadioButton2) 139 | .addGap(18, 18, 18) 140 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 141 | .addGroup(layout.createSequentialGroup() 142 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE) 143 | .addContainerGap(79, Short.MAX_VALUE)) 144 | .addGroup(layout.createSequentialGroup() 145 | .addComponent(jRadioButton3) 146 | .addGap(18, 18, 18) 147 | .addComponent(jRadioButton5) 148 | .addGap(18, 18, 18) 149 | .addComponent(jRadioButton4) 150 | .addGap(0, 0, Short.MAX_VALUE)))) 151 | ); 152 | layout.setVerticalGroup( 153 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 154 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 155 | .addGap(20, 20, 20) 156 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 157 | .addGap(18, 18, 18) 158 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 159 | .addComponent(jRadioButton1) 160 | .addComponent(jRadioButton2) 161 | .addComponent(jRadioButton3) 162 | .addComponent(jRadioButton5) 163 | .addComponent(jRadioButton4)) 164 | .addGap(47, 47, 47) 165 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 166 | .addGroup(layout.createSequentialGroup() 167 | .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE) 168 | .addGap(58, 58, 58)) 169 | .addGroup(layout.createSequentialGroup() 170 | .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 171 | .addGap(18, 18, 18) 172 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 173 | .addComponent(jTextField1) 174 | .addComponent(jLabel3)) 175 | .addGap(11, 11, 11))) 176 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 177 | .addGroup(layout.createSequentialGroup() 178 | .addGap(8, 8, 8) 179 | .addComponent(jLabel2)) 180 | .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 181 | .addGap(26, 26, 26) 182 | .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 183 | .addGap(39, 39, 39) 184 | .addComponent(jButton1) 185 | .addContainerGap()) 186 | ); 187 | 188 | pack(); 189 | }// 190 | 191 | private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) { 192 | 193 | 194 | 195 | 196 | 197 | 198 | // TODO add your handling code here: 199 | 200 | // TODO add your handling code here: 201 | } 202 | 203 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { 204 | // TODO add your handling code here: 205 | 206 | App m = new App(); 207 | 208 | 209 | if (jRadioButton1.isSelected()){ 210 | 211 | 212 | 213 | Thread t1 = new Thread(new progress(jProgressBar1)); 214 | t1.start(); 215 | Thread t2 = new Thread(new Runnable() { 216 | @Override 217 | public void run() { 218 | m.sendPingRequest2("104.160.141.3",jTextPane1,jTextPane2,jTextField1); // Insert some method call here. 219 | } 220 | 221 | 222 | 223 | }); 224 | 225 | t2.start(); 226 | 227 | t1.start(); 228 | } 229 | if (jRadioButton2.isSelected()){ 230 | 231 | 232 | Thread t1 = new Thread(new progress(jProgressBar1)); 233 | t1.start(); 234 | Thread t2 = new Thread(new Runnable() { 235 | @Override 236 | public void run() { 237 | m.sendPingRequest2("104.160.156.1",jTextPane1,jTextPane2,jTextField1); // Insert some method call here. 238 | } 239 | 240 | 241 | 242 | }); 243 | 244 | t2.start(); 245 | } 246 | 247 | 248 | if (jRadioButton3.isSelected()){ 249 | 250 | 251 | 252 | 253 | Thread t1 = new Thread(new progress(jProgressBar1)); 254 | t1.start(); 255 | Thread t2 = new Thread(new Runnable() { 256 | @Override 257 | public void run() { 258 | m.sendPingRequest2("104.160.142.3",jTextPane1,jTextPane2,jTextField1); // Insert some method call here. 259 | } 260 | 261 | 262 | 263 | }); 264 | 265 | t2.start(); 266 | 267 | 268 | } 269 | 270 | if (jRadioButton4.isSelected()){ 271 | 272 | 273 | 274 | 275 | Thread t1 = new Thread(new progress(jProgressBar1)); 276 | t1.start(); 277 | Thread t2 = new Thread(new Runnable() { 278 | @Override 279 | public void run() { 280 | m.sendPingRequest2("104.160.136.3",jTextPane1,jTextPane2,jTextField1); // Insert some method call here. 281 | } 282 | 283 | 284 | 285 | }); 286 | 287 | t2.start(); 288 | 289 | 290 | } 291 | 292 | if (jRadioButton5.isSelected()){ 293 | 294 | 295 | 296 | 297 | Thread t1 = new Thread(new progress(jProgressBar1)); 298 | t1.start(); 299 | Thread t2 = new Thread(new Runnable() { 300 | @Override 301 | public void run() { 302 | m.sendPingRequest2("104.160.131.3",jTextPane1,jTextPane2,jTextField1); // Insert some method call here. 303 | } 304 | 305 | 306 | 307 | }); 308 | 309 | t2.start(); 310 | 311 | 312 | } 313 | 314 | 315 | 316 | } 317 | 318 | private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) { 319 | // TODO add your handling code here: 320 | } 321 | 322 | private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) { 323 | // TODO add your handling code here: 324 | } 325 | 326 | 327 | 328 | 329 | /** 330 | * @param args the command line arguments 331 | */ 332 | public static void main(String args[]) { 333 | /* Set the Nimbus look and feel */ 334 | // 335 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 336 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 337 | */ 338 | try { 339 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 340 | if ("Nimbus".equals(info.getName())) { 341 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 342 | break; 343 | } 344 | } 345 | } catch (ClassNotFoundException ex) { 346 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 347 | } catch (InstantiationException ex) { 348 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 349 | } catch (IllegalAccessException ex) { 350 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 351 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 352 | java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 353 | } 354 | // 355 | 356 | /* Create and display the form */ 357 | java.awt.EventQueue.invokeLater(new Runnable() { 358 | public void run() { 359 | new NewJFrame().setVisible(true); 360 | } 361 | }); 362 | } 363 | 364 | // Variables declaration - do not modify 365 | private javax.swing.JButton jButton1; 366 | private javax.swing.JLabel jLabel1; 367 | private javax.swing.JLabel jLabel2; 368 | private javax.swing.JLabel jLabel3; 369 | private javax.swing.JLabel jLabel4; 370 | private javax.swing.JProgressBar jProgressBar1; 371 | private javax.swing.JRadioButton jRadioButton1; 372 | private javax.swing.JRadioButton jRadioButton2; 373 | private javax.swing.JRadioButton jRadioButton3; 374 | private javax.swing.JRadioButton jRadioButton4; 375 | private javax.swing.JRadioButton jRadioButton5; 376 | private javax.swing.JScrollPane jScrollPane1; 377 | private javax.swing.JScrollPane jScrollPane2; 378 | private javax.swing.JTextField jTextField1; 379 | private javax.swing.JTextPane jTextPane1; 380 | private javax.swing.JTextPane jTextPane2; 381 | // End of variables declaration 382 | 383 | 384 | static Constants a; 385 | 386 | 387 | } 388 | 389 | 390 | 391 | 392 | -------------------------------------------------------------------------------- /src/main/constants.java: -------------------------------------------------------------------------------- 1 | package selenium; 2 | 3 | /** 4 | * 5 | * @author User 6 | */ 7 | public enum Constants { 8 | NA ("104.160.131.3"), EUW("104.160.141.3"),EUNE("104.160.142.3"),KOR("104.160.156.1"),LAN("104.160.136.3"); 9 | 10 | private String ip; 11 | 12 | Constants(String ip){ 13 | this.ip = ip; 14 | } 15 | 16 | public String getIp(){ 17 | return ip; 18 | } 19 | } 20 | --------------------------------------------------------------------------------