How can I set or configure a text editor like sublime text or atom, to work on java proyects. It is for school, i have a restriction where i cannot use an IDE. I will creeate a simple aplication based on java swing. What do you recommend me to do? (sorry for my bad english).
I would recommend you to use TextArea from java swing tools and menu to do actions like save,edit,delete .. etc
Related
I'm using JavaFX integrated HTMLEditor. All the functions that it has are fine but I need to have also the function of inserting an image inside the HTML text.
Do you know some source which I could use? Or some other HTML (WYSIWYG) editor that could be used inside JavaFX and it has this functionality ?
I can program this functionality into the existing JavaFX HTMLEditor by myself, but I prefer to ask before I start doing something :)
Thank you very much for your answers ;)
I'd advise just customizing the existing JavaFX HTMLEditor, if it does most things you need with the exception of adding images and the look and feel of it is basically ok for you.
I created a code sample to assist in some JavaFX HTMLEditor customization tasks.
Another option you could toy with for a very basic html editor is a WebView with contenteditable set to true. Though I haven't tried it with images - maybe it will work ok.
If the above options don't work for you there there are heaps of javascript based editors out there to choose from.
I'm writing an app in Java and swing using Netbeans, and I need property editor (like this). How I can add it to my application?
I really recommend using the NetBeans Platform. It's really simple and well documented rich client platform. Then you can use exactly the same property editor as in NetBeans. Porting from plain Swing applications to NeatBeans RCP is quite simple too.
I want to put a text editor in my java application.
The editor has to have basic formatting features like fonts, bold, color etc..
Ideally I'd like to just add the Text Editor as a component to a JFrame.
Is there any library for this?
I think this could be simply done using a JEditPane, but I don't want to
go through all the trouble of making an editor if I could just import one.
From this post on java.net: have a look at Ekit.
The secton from the Swing tutorial on Text Component Features has a quick example how this might be done.
You can't just plug in a component and expect it to work as an editor. You need to add toolbars and menu items for your font, bold color features etc. The editor kits provided by Swing support all these basic features.
You might want to look at SwingX (see the Java Web Start demo on the page), in particular the JXEditorPane component.
I've been trying to create a GUI using netbeans, that includes a dialog similar to Netbean's own "property dialog" that appears when designing. ie. a dialog that contains a table that can be expanded by tree nodes. Something like the dialog on this page, http://platform.netbeans.org/tutorials/nbm-property-editors.html
As far as I can understand, the page I linked to describes a custom editor I can set up for use within netbeans while designing - I'm just looking for a way to doing something similar for my actual application I'm writing. Is there an easy way to do this?
I came across this and have tried it but it doesn't quite work in the same way as the standard Netbeans dialog. weblogs.java.net/blog/timboudreau/archive/2008/06/egads_an_actual.html
Any tips greatly appreciated.
This will sound flip... but I am being serious.
The easiest way to do this is to write your app using the NetBeans RCP platform.
You may want to look at the Swing Application Framework, too.
There are a couple SAF samples integrated into NetBeans... You can read about them here: http://netbeans.org/kb/docs/java/gui-saf.html
I could not find a property editor dialog sample, though.
I found a couple other pointers, using this query: http://www.google.com/search?q=how+to+write+a+property+editor+dialog+in+swing
You could take a look into the l2fprod components
(source: l2fprod.com)
Anyone know of an SWT widget that can be a text editor with support for syntax highlighting? I'm aware of the StyledText widget but I'm hoping that somebody has already written some libraries so one can just specify the keywords that should be highlighted.
Indeed, the general principle of syntax highlighting are using the StyledText Widget.
The JavaSourcecodeViewer is a more advanced example.
The JavaViewer is even more detailed (source code).
I'd look into what Eclipse uses in their code editor. Because if any SWT application uses syntax highlighting, its Eclipse.
Perhaps what you are looking for is Eclipse Colorer plug-in.
I have no idea though if and how would the colorer be usable as an SWT widget.