Advertisement
xlrnxnlx

VBConnection02

Jul 31st, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. import javax.swing.JOptionPane;
  2. import vbconnection.VBConnection;
  3. import vbconnection.VBConnectionException;
  4.  
  5. public class Main {
  6.     public static void main(String[] args) {
  7.        
  8.         String user = JOptionPane.showInputDialog(null, "usuário");
  9.         String pass = JOptionPane.showInputDialog(null, "senha");
  10.        
  11.        
  12.         try {
  13.             VBConnection vBulletinConnection = new VBConnection( user, pass );
  14.             vBulletinConnection.setLoginURL("http://www.FORUMFORUM.com.br/forum/login.php?");
  15.            
  16.             if( vBulletinConnection.connect())
  17.               JOptionPane.showMessageDialog(null, "Conectado!");
  18.            
  19.         } catch( VBConnectionException e){}
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement