How to Make Java IDE in Swing Every java geekers use IDE like - TopicsExpress



          

How to Make Java IDE in Swing Every java geekers use IDE like MyEcllipse,Netbeans etc. for java programming and if i would say you can make your own java IDE then what your reaction. Yaa its amazing as hear but not hard as you think. Before going ahead give me simple answer : Q : Which IDE youre use for Java programming ? Please answer in comment section . Now what we need to do first of all download the JSyntaxPane.jar . The main goal is to make it easy to have nice looking Java Swing Editors with support for Syntax Highlighting. Now your application has access to all of the following editor kits: Now we use it by two simple step: Create a JFrame Add a JEditorPane jsyntaxpane.DefaultSyntaxKit.initKit();jEditorPane.setContentType(text/java); You dont need to declare jsyntaxpane and then initialize it. Simply use it, exactly as above, i.e., use its initKit call and then youre done. That one line of code is literally all thats needed, after which you can set the MIME type of your choice. For text/java, youll get all of this when you run your JFrame: Above image tells you which editor kits are available. Now you need to check jsyntaxpane.kitsfortypes.properties where youll get the mappings between MIME types and editor kits: text/c=jsyntaxpane.syntaxkits.CSyntaxKittext/cpp=jsyntaxpane.syntaxkits.CppSyntaxKittext/java=jsyntaxpane.syntaxkits.JavaSyntaxKittext/groovy=jsyntaxpane.syntaxkits.GroovySyntaxKittext/javascript=jsyntaxpane.syntaxkits.JavaScriptSyntaxKittext/xml=jsyntaxpane.syntaxkits.XmlSyntaxKittext/sql=jsyntaxpane.syntaxkits.SqlSyntaxKittext/properties=jsyntaxpane.syntaxkits.PropertiesSyntaxKittext/python=jsyntaxpane.syntaxkits.PythonSyntaxKittext/tal=jsyntaxpane.syntaxkits.TALSyntaxKittext/jflex=jsyntaxpane.syntaxkits.JFlexSyntaxKittext/ruby=jsyntaxpane.syntaxkits.RubySyntaxKit In this editor have some pre-defined functionality like Ctrl-F(Find),Ctrl-H(Replace) etc. Another very cool predefined feature is code completion by Press Ctrl-Space and your abbreviations will expand to full code snippets. These are defined in jsyntaxpane.javasyntaxkitpletion.properties pu=public | pr=private | st=static | cl=class | St=String | fri=for(int i=0; i
Posted on: Wed, 12 Mar 2014 07:44:34 +0000

Trending Topics



Recently Viewed Topics




© 2015