Thread: [Galkon's] Remove Toolbar

Results 1 to 4 of 4
  1. #1 [Galkon's] Remove Toolbar 
    Extreme Donator


    Join Date
    Jul 2009
    Age
    24
    Posts
    4,350
    Thanks given
    824
    Thanks received
    1,237
    Rep Power
    1789
    The tool bar was annoying to me, and probably is to other people so yea just replace you'r Jframe.java with this:
    Code:
    import sign.signlink;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    import javax.swing.plaf.metal.MetalLookAndFeel;
    
    
    public class Jframe extends client implements ActionListener {
    
        private static JMenuItem menuItem;
    	private JFrame frame;
    
    	public Jframe(String args[]) {
    		super();
    		try {
    			sign.signlink.startpriv(InetAddress.getByName(server));
    			initUI();
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    
    	public void initUI() {
    		try {
    			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    			JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    			frame = new JFrame("Redlined Client");
    			frame.setLayout(new BorderLayout());
    			frame.setResizable(false);
    			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    			JPanel gamePanel = new JPanel();
    
    			gamePanel.setLayout(new BorderLayout());
    			gamePanel.add(this);
    			gamePanel.setPreferredSize(new Dimension(765, 503));
    
    			JMenu fileMenu = new JMenu("File");
    
    			String[] mainButtons = new String[] { "Rune-Server", "-", "Exit" };
    
    			for (String name : mainButtons) {
    				JMenuItem menuItem = new JMenuItem(name);
    				if (name.equalsIgnoreCase("-")) {
    					fileMenu.addSeparator();
    				} else {
    					menuItem.addActionListener(this);
    					fileMenu.add(menuItem);
    				}
    			}
    
    			//JMenuBar menuBar = new JMenuBar();
    			//JMenuBar jmenubar = new JMenuBar();
    
    			//frame.add(jmenubar);
    			//menuBar.add(fileMenu);
    			//frame.getContentPane().add(menuBar, BorderLayout.NORTH);
    			frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
    			frame.pack();
    
    			frame.setVisible(true); // can see the client
    			frame.setResizable(false); // resizeable frame
    
    			init();
    		} catch (Exception e) {
    				e.printStackTrace();
    		}
    	}
    
    	public URL getCodeBase() {
    		try {
    			return new URL("http://" + server + "/cache");
    		} catch (Exception e) {
    			return super.getCodeBase();
    		}
    	}
    
    	public URL getDocumentBase() {
    		return getCodeBase();
    	}
    
    	public void loadError(String s) {
    		System.out.println("loadError: " + s);
    	}
    
    	public String getParameter(String key) {
    			return "";
    	}
    
    	private static void openUpWebSite(String url) {
    		Desktop d = Desktop.getDesktop();
    		try {
    			d.browse(new URI(url)); 	
    		} catch (Exception e) {
    		}
    	}
    
    	public void actionPerformed(ActionEvent evt) {
    		String cmd = evt.getActionCommand();
    		try {
    			if (cmd != null) {
    				if (cmd.equalsIgnoreCase("exit")) {
    					System.exit(0);
    				}
    				if (cmd.equalsIgnoreCase("Rune-Server")) {
    					openUpWebSite("http://www.rune-server.ee/");
    				}	
    			}
    		} catch (Exception e) {
    		}
    	}
    }

    You can find my [Only registered and activated users can see links. ], for what I'm currently working on.
    Reply With Quote  
     

  2. #2  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    25
    Posts
    4,561
    Thanks given
    1,158
    Thanks received
    1,173
    Rep Power
    2949
    I think that everyone can do this, anyways good job lol. May be usefull for noobs .
    [Only registered and activated users can see links. ]
    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Jul 2009
    Age
    24
    Posts
    4,350
    Thanks given
    824
    Thanks received
    1,237
    Rep Power
    1789
    ^
    thats why i did it for noobs

    You can find my [Only registered and activated users can see links. ], for what I'm currently working on.
    Reply With Quote  
     

  4. #4  
    Misthalin OSRS
    Valerian's Avatar
    Join Date
    Jan 2009
    Age
    26
    Posts
    3,951
    Thanks given
    459
    Thanks received
    420
    Rep Power
    3992
    so ur the one tho ?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2010, 10:10 AM
  2. Runescape ToolBar
    By ByteBlast in forum Media
    Replies: 14
    Last Post: 09-02-2010, 12:27 AM
  3. [PI] Galkon's , Remove ID
    By Vegas in forum Help
    Replies: 0
    Last Post: 08-23-2010, 10:56 PM
  4. [Galkon's] Removing White Border [Galkon's]
    By Proffessor Oak in forum Help
    Replies: 2
    Last Post: 11-13-2009, 02:00 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •