Jump to content

Search the Community

Showing results for tags 'ide'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 14 results

  1. Hey guys. I know how to Eclipse... But I don't know how my project files for an RSPS should be arranged. Do I just unpack server and client into one folder then open that folder in Eclipse? Any help would be appreciated :) (UNRELATED ERROR I NEED HELP WITH) Also, when running server and client, im getting the error "error_game_js5connect". Any help on that would be appreciated :)
  2. How do I open all files and such into eclipse to view them? I dont want to use that stupid compiler.bat anymore. Its annoying (Im using RLStarterKit) :P Thanks for any help!
  3. I am trying to mess around learn customizing and such. I have done phats and a few other things. I tried making a custom Santa but every time I create it then test i can wear it but the hat is still red, and is not black or lime green, (the colors i made the custom hats). I will post an SS below and see if anyone can help assisting me and give suggestions? I tried putting the color IDs in model color only, texture only, and as seen in the pic in BOTH. Nothing! :(. I'm obviously typing the color code wrong, can anyone help? Thanks!! [IMG]http://i45.tinypic.com/nya8ug.jpg[/IMG]
  4. What your IDE theme looks like? Here's mine Neatbeans (using the most) [img]http://puu.sh/drSQe/b22a38c157.png[/img] Eclipse (using very rarely) [img]http://puu.sh/drT5Z/9b39d19a95.png[/img]
  5. Hey guys, im having a bit of trouble running the IDE editor I recently downloaded. Every time I try to open it, it loads all these errors: [CODE]ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:283) at com.alex.loaders.items.ItemDefinitions.getItemDefinition(ItemDefiniti ons.java:279) at com.alex.loaders.items.ItemDefinitions.toNote(ItemDefinitions.java:32 6) at com.alex.loaders.items.ItemDefinitions.loadItemDefinition(ItemDefinit ions.java:318) at com.alex.loaders.items.ItemDefinitions.<init>(ItemDefinitions.java:29 5)[/CODE] Can someone please help? Thanks :)!
  6. Hey, I am learning Java atm, but I can not seem to find a good IDE (Currently using Netbeans but I do not understand sh*t) Any suggestions
  7. I am looking for a notepad file or a pdf chart of color codes for an 718 IDE. Posted screenshot if it helps you... cannot find one via google for the life of me!! [IMG]http://i50.tinypic.com/2jep8b8.jpg[/IMG]
  8. So as the title says I need an IDE.... I have one buuuut someone removed the equipslot and equiptype and price from the Editor... I have tried adding it back in but I keep seeming to fail... If anyone can help me out that would be cool thanks.
  9. hi guys, i want to know the buttonid of a button in my server, i've heard that you can acquire the buttonid when you're in the eclipse debug mode, but i can't get it working. can someone tell me how/where i can see the buttonid in eclipse IDE (debug mode) thanks, new2code
  10. I know there are many tutorials for this and I have looked and followed them all however I'm having problems with my 2 favorites. Eclipse - I get errors saying that there are various compilation problems. There seems to be an exclusion in the packages which it uses in the build path (model/players), and when I try to remove the exclusion it says it cannot nest. Netbeans - It can't find my main class (and I have tried to edit the project properties and such) Any help please?
  11. Hey guys, I just downloaded Eclipse (also new to Java) and it is not auto-compiling on the save. Is there a certain version of JDK or JRE I need? Thanks guys, respond if you know :D
  12. axter

    Ide

    I'm having trouble adding a source with existing files to Netbeans, iv'e done it before but i either forgot or it's not cooperating.. can someone tv with me and help me add it?
  13. Hello, Since a REAL WHILE, i'm trying to find out how to create customs. As an example, another coloured whip, a coloured ags IDK. I only want to know how to do it, what cache editor/IDE use etc. IMPORTANT NOTE: Don't tell me to get [URL="http://www.runelocus.com/forums/showthread.php?17859-562-Custom-Items"]this[/URL] tutorial, because its too messy and it wont work for my server. It is 562 loading 668.
  14. I'm going to be showing you how to create a GUI in Java :3. I've posted.. 2 Java GUI tutorials on Runelocus both requiring the use of an IDE, netbeans to be accurate.. But this time we will be using: Notepad, Notepad++, Dreamweaver, w/e is in your possession besides netbeans! To start off create a new class. I've named my class "Main." And add [code]public static void main(String[] args) {[/code] this is what Java searches for when your trying to run something in Java. It's basically the Brain of the class. Without the Brain the body cannot function. [code] package gui; /** * @Author Divine-X */ public class Main extends JFrame { /** * @param args */ public static void main(String[] args) { }[/code] Next to the name of your class add this [code] extends JFrame [/code] and import [code]import javax.swing.JFrame;[/code] [code] package gui; import javax.swing.JFrame; /** * @Author Divine-X */ public class Main extends JFrame { /** * @param args */ public static void main(String[] args) { }[/code] Now under our [code]public static void main(String[] args) {[/code] add [code] try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); }[/code] And import [code]import javax.swing.UIManager; import java.awt.EventQueue;[/code] [code]package gui; import javax.swing.JFrame; import javax.swing.UIManager; import java.awt.EventQueue; /** * @Author Divine-X */ public class Main extends JFrame { /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } }[/code] Now what were going to do just incase ontop of our class header were going to add[code]@SuppressWarnings("serial")[/code] [code]package gui; import javax.swing.JFrame; import javax.swing.UIManager; import java.awt.EventQueue; /** * @Author Divine-X */ @SuppressWarnings("serial")//It's not needed but just for precautions public class Main extends JFrame { /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } }[/code] Now were going to create the constructor of the class. Constructors are like public methods but use the Classes name and can't be returned. I could be wrong I'm not good on explaining things >.<! And were going to want to create 2 ints also. [code]private static final int W = 350; private static final int L = 420;[/code] Private means it can only be accessed, used, in this class only. So if your new to RSPS and your wondering what's the difference between private and public, public means used anywhere private means used in the class it's created in. [code]package gui; /**Java Imports*/ import java.awt.EventQueue; /**GUI/Javax Imports*/ import javax.swing.JFrame; import javax.swing.UIManager; /** * @Author Divine-X */ @SuppressWarnings("serial") public class Main extends JFrame { private static final int W = 350; private static final int L = 420; /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } /**Class Constructor*/ public Main() { } }[/code] Now in our constructor were going to want to add these in it [code] setResizable(false);//Makes it so they can't edit the size of the GUI setTitle("Your GUI Name Here!");//The title of the GUI setDefaultCloseOperation(EXIT_ON_CLOSE);//So when we exit the GUI it will Close it 100% setSize(W, L);//Sets the Width and Length by getting the numbers from the integers we previously created[/code] Now where our other ints are ontop of them add [code]private JLayeredPane contentPane;[/code] And in our constructor we would want to add this [code] this.contentPane = new JLayeredPane();//Creates a new JLayer and sends it to GUI this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));//Emptyborders, I can't explain it good >.< it just shows no borders setContentPane(this.contentPane); JPanel jPanel = new JPanel();//Creates a new JPanel jPanel.setBounds(0, 0, 340, 410);//The first 2 numbers are default 0 and 3rd and 4th need to be atleast Default Width - 10 = new Width same for length this.contentPane.add(jPanel);//Add the jPanel jPanel.setLayout(new BorderLayout(0, 0));//Can't explain JTabbedPane parentTab = new JTabbedPane(1);//Creates 1 JTabbedPane only need 1 for GUIs jPanel.add(parentTab);//Add the recently created jPanel to the JTab JPanel jPanel1 = new JPanel();//New instance of a JPanel parentTab.addTab("Tab1", null, jPanel1, null);//Sends the JPanel to the JTab to be viewed on gui jPanel1.setLayout(null);//Sets the layout to null(default) JPanel jPanel2 = new JPanel();//New Instance of a JPanel parentTab.addTab("Tab2", null, jPanel2, null);//Sends the JPanel to the JTab to be viewed on gui jPanel2.setLayout(null);//Sets the layout to null(default)[/code] And import [code]import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.UIManager; import javax.swing.border.EmptyBorder; import java.awt.BorderLayout;[/code] [code]package gui; /**Java Imports*/ import java.io.IOException; import java.awt.BorderLayout; import java.awt.EventQueue; /**GUI/Javax Imports*/ import javax.swing.JFrame; import javax.swing.JLayeredPane; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.UIManager; import javax.swing.border.EmptyBorder; /** * @Author Divine-X */ @SuppressWarnings("serial") public class Main extends JFrame { private JLayeredPane contentPane; private static final int W = 350; private static final int L = 420; /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } /**Creates a new form*/ public Main() { setResizable(false); setTitle("Your GUI Name Here!"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(W, L); this.contentPane = new JLayeredPane(); this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(this.contentPane); JPanel jPanel = new JPanel(); jPanel.setBounds(0, 0, 340, 410); this.contentPane.add(jPanel); jPanel.setLayout(new BorderLayout(0, 0)); JTabbedPane parentTab = new JTabbedPane(1); jPanel.add(parentTab); JPanel jPanel1 = new JPanel(); parentTab.addTab("Tab1", null, jPanel1, null); jPanel1.setLayout(null); JPanel jPanel2 = new JPanel(); parentTab.addTab("Tab2", null, jPanel2, null); jPanel2.setLayout(null); } } [/code] Now under [code]parentTab.addTab("Tab1", null, jPanel1, null);[/code] Add [code] textArea.setFont(new Font("Rockwell", 1, 12)); textArea.setBounds(0, 208, 343, 150);//1st number = X-Axis, 2nd number = Y-Axis, 3rd Number = Width, 4th = Height; The thing with Java is that Java's coordinate plotting is different then ours. Their (0,0) would be at the top left of your screen, not the center. So you would have to experiment for the right numbers for awhile textArea.setEditable(false);//So they can't edit the text jPanel1.add(textArea);//Adds it to the 1st tab[/code] And where our ints are add[code]private static JTextArea textArea = new JTextArea();[/code] [code]package gui; /**Java Imports*/ import java.io.IOException; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Font; /**GUI/Javax Imports*/ import javax.swing.JFrame; import javax.swing.JLayeredPane; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.UIManager; import javax.swing.border.EmptyBorder; /** * @Author Divine-X */ @SuppressWarnings("serial") public class Main extends JFrame { private static JTextArea textArea = new JTextArea(); private JLayeredPane contentPane; private static final int W = 350; private static final int L = 420; /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } /**Creates a new form*/ public Main() { setResizable(false); setTitle("Your GUI Name Here!"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(W, L); this.contentPane = new JLayeredPane(); this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(this.contentPane); JPanel jPanel = new JPanel(); jPanel.setBounds(0, 0, 340, 410); this.contentPane.add(jPanel); jPanel.setLayout(new BorderLayout(0, 0)); JTabbedPane parentTab = new JTabbedPane(1); jPanel.add(parentTab); JPanel jPanel1 = new JPanel(); parentTab.addTab("Tab1", null, jPanel1, null); textArea.setFont(new Font("Rockwell", 0, 12)); textArea.setBounds(0, 208, 343, 150); textArea.setEditable(false); jPanel1.add(textArea); jPanel1.setLayout(null); JPanel jPanel2 = new JPanel(); parentTab.addTab("Tab2", null, jPanel2, null); jPanel2.setLayout(null); } } [/code] Under [code]jPanel1.add(textArea);[/code] Add[code] sndMsg.addActionListener(new ActionListener() {//Listens to the mouse if the button is clicked public void actionPerformed(ActionEvent e) {//Starts it off Main.textArea.append("Hehe Haidar!\n");//Sends the message to the textArea we added to the GUI; Main = Class, textArea = where we would like the message to go, append = Add the string, text, to the destination } }); sndMsg.setFont(new Font("Rockwell", 1, 12)); sndMsg.setBounds(26, 16, 290, 28);//Place the button on the GUI jPanel1.add(sndMsg);//Add the button to the GUI[/code] And import [code]import javax.swing.JButton; import javax.swing.JOptionPane;[/code] And where our ints are add [code] private JButton sndMsg = new JButton("Click here to send a default message!"); [/code] [code]package gui; /**Java Imports*/ import java.io.IOException; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /**GUI/Javax Imports*/ import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLayeredPane; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.UIManager; import javax.swing.border.EmptyBorder; /** * @Author Divine-X */ @SuppressWarnings("serial") public class Main extends JFrame { private static JTextArea textArea = new JTextArea(); private JButton sndMsg = new JButton("Click here to send a default message!"); private JLayeredPane contentPane; private static final int W = 350; private static final int L = 420; /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } /**Creates a new form*/ public Main() { setResizable(false); setTitle("Your GUI Name Here!"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(W, L); this.contentPane = new JLayeredPane(); this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(this.contentPane); JPanel jPanel = new JPanel(); jPanel.setBounds(0, 0, 340, 410); this.contentPane.add(jPanel); jPanel.setLayout(new BorderLayout(0, 0)); JTabbedPane parentTab = new JTabbedPane(1); jPanel.add(parentTab); JPanel jPanel1 = new JPanel(); parentTab.addTab("Tab1", null, jPanel1, null); //Text Area textArea.setFont(new Font("Rockwell", 0, 12)); textArea.setBounds(0, 208, 343, 150); textArea.setEditable(false); jPanel1.add(textArea); //Buttons sndMsg.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Main.textArea.append("Hehe Haidar!\n"); } }); sndMsg.setFont(new Font("Rockwell", 1, 12)); sndMsg.setBounds(26, 16, 290, 28); jPanel1.add(sndMsg); jPanel1.setLayout(null); JPanel jPanel2 = new JPanel(); parentTab.addTab("Tab2", null, jPanel2, null); jPanel2.setLayout(null); } } [/code] Now under [code]jPanel1.add(sndMsg);[/code] Add this[code] opnDia.addActionListener(new ActionListener() {//Listens for the mouse if it clicked this button public void actionPerformed(ActionEvent e) {//Send the action String i = JOptionPane.showInputDialog(null, "How are you?", "Question", JOptionPane.QUESTION_MESSAGE);//Making this a string allows us to get the users input; null = center of screen, String 2 = Message/Body, String 3 = Title Main.textArea.append("Your feeling " +i+ "?\nSo am I!\n");//Send the input the user has entered to the TextBox; \n = new line, \t = tab } }); opnDia.setFont(new Font("Rockwell", 1, 12)); opnDia.setBounds(26, 59, 290, 28);//Again play with this to find the right area jPanel1.add(opnDia);//Adds the Button to the GUI[/code] [code]package gui; /**Java Imports*/ import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /**GUI/Javax Imports*/ import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLayeredPane; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.UIManager; import javax.swing.border.EmptyBorder; /** * @Author Divine-X */ @SuppressWarnings("serial") public class Main extends JFrame { private static JTextArea textArea = new JTextArea(); private JButton sndMsg = new JButton("Click here to send a default message!"); private JButton opnDia = new JButton("Click here to send a question!"); private JLayeredPane contentPane; private static final int W = 350; private static final int L = 420; /** * @param args */ public static void main(String[] args) { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { new Main().setVisible(true); } }); } /**Creates a new form*/ public Main() { setResizable(false); setTitle("Your GUI Name Here!"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(W, L); this.contentPane = new JLayeredPane(); this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(this.contentPane); JPanel jPanel = new JPanel(); jPanel.setBounds(0, 0, 340, 410); this.contentPane.add(jPanel); jPanel.setLayout(new BorderLayout(0, 0)); JTabbedPane parentTab = new JTabbedPane(1); jPanel.add(parentTab); JPanel jPanel1 = new JPanel(); parentTab.addTab("Tab1", null, jPanel1, null); //Text Area textArea.setFont(new Font("Rockwell", 1, 12)); textArea.setBounds(0, 208, 343, 150); textArea.setEditable(false); jPanel1.add(textArea); //Buttons sndMsg.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Main.textArea.append("Hehe Haidar!\n"); } }); sndMsg.setFont(new Font("Rockwell", 1, 12)); sndMsg.setBounds(26, 16, 290, 28); jPanel1.add(sndMsg); opnDia.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String i = JOptionPane.showInputDialog(null, "How are you?", "Question", JOptionPane.QUESTION_MESSAGE); Main.textArea.append("Your feeling " +i+ "?\nSo am I!\n"); } }); opnDia.setFont(new Font("Rockwell", 1, 12)); opnDia.setBounds(26, 59, 290, 28); jPanel1.add(opnDia); jPanel1.setLayout(null); JPanel jPanel2 = new JPanel(); parentTab.addTab("Tab2", null, jPanel2, null); jPanel2.setLayout(null); } } [/code] And if you followed this tutorial correctly your GUI should've went through these phases of design. [IMG]http://i1092.photobucket.com/albums/i403/Divine-X/GUI1.png[/IMG] [IMG]http://i1092.photobucket.com/albums/i403/Divine-X/GUI2.png[/IMG] [IMG]http://i1092.photobucket.com/albums/i403/Divine-X/GUI3.png[/IMG] [IMG]http://i1092.photobucket.com/albums/i403/Divine-X/GUI4.png[/IMG] [IMG]http://i1092.photobucket.com/albums/i403/Divine-X/GUI5.png[/IMG] Now to run & compile the gui make 2 new .txt files name one run.bat and the other compile.bat Now in run.bat add this[code]@echo off "C:\Program Files\Java\jre6\bin\java.exe" -classpath bin; gui.Main pause [/code] You might have to change the directory alittle bit for finding the class file. Compile.bat [code]@echo off echo Compiling cd . mkdir bin "C:\Program Files\Java\jdk1.6.0_27\bin\javac.exe" -d bin -sourcepath src src/gui/*.java pause [/code] And that's it! Hoped this helped you in creating Java GUIs!
×