looking for Java GUI components / ideas for syntax highlighting [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm not committed to any particular GUI tookit or anything - just needs to be Java based. I want to do simple syntax highlighting ( XML and XQuery ) inside editable text areas.
My only candidate so far is Swing's JTextPane, as it supports seems to support the styling of text, but I have no idea how to implement it in this context.
If a particular toolkit has something like this out of the box, that would be awesome, but I'm open to doing this by hand if need be.

JSyntaxPane handles XML and can be extended
http://code.google.com/p/jsyntaxpane/wiki/Using
Or, it should be possible to extract the NetBeans editor, but that would probably be more work...
[edit] btw, I got the XML info from here... it doesn't seem to mention it on the google code pages...

Jide software has a Syntax Highligher component. It is still in beta, but I think it supposed XML. I haven't used it myself, so I don't know how well it will do what you want.

Why not check out Ostermiller's Syntax Highlighter.
Here's a simple code editor demo
It still uses JTextPane though.

Related

SWT source code editor widget [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any source code editor widget for SWT? I looked for a long time and nothing found... I saw that question: SWT Syntax highlighting widget, but I don't want to use raw StyledText widget - I need more than only syntax highlighting. I need also, for example, code completion.
I need this to give to the user ability to edit source in Python.
I "resolved" the problem.
I used the JFace's SourceViewer and other things found in Google, like for example simple syntax highlighting.
You can create an eclipse plugin for editing python files (including the outline view, and other things related to eclipse). Then you install it in an empty eclipse application (without the java editor), and the user can edit these kind of files.
A link for creating editors would be on vogella.com. I know there's another example on the Internet about editing xml files, but I can't find the link now.
I think you can take a look at how JavaEditor is implemented in *jdt*ui* plugin. org.eclipse.ui.texteditor.AbstractTextEditor is base class for most of the editors. Once you have the editor implemented, you just need to associate file extension with the editor.

Looking for a Java based SCSS to CSS Converter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a Java based SCSS to CSS Converter to write a Jawr Preprocessor for this.
So it's important to keep comments for building Sprites with Jawr.
I just found SAC which seems to be a great base start writing one.
CSS Level 3 has to be supported - that's why CSS Parser isn't a choice.
If I have to write my own (which will be Open Source and hosted on GitHub for sure):
Is there any SCSS Parser? If not, can I write my own based on SAC as well?
Would anyone help me?
EDIT I just saw there's also a LESS Syntax which looks much better to me than SCSS. Alternatively or in addition to SCSS, LESS would be great as well.
I just found this awesome project: wro4j
EDIT: For Completeness: Jawr will implement these features in their next release as well.

How to create a webpage similar to Google's online spreadsheet? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to create a webpage quite similar to Google's great Docs spreadsheet, but in my case I cannot use their's.
Also there is no need to have the full feature set of the Google Docs spreadsheet (which is really big!).
But my minimal feature set is:
- change, add, delete cells and content
- change of formats like color, size, font
- the functions sum(), avg(), count()
My preferred tools are JSP, tomcat, JQuery. The server representation does not matter and could be any of xml, text, database tables or s.th. else.
I am quite sure, that there are perfect open solutions out there - which I can use to start - to fit my requirements but my problem is to find them.
Searching for "Google spreadsheet alternative" did not work very well.
Any hint or link is appreciated.
Thank you.
Alex
Take a look at primefaces sheet. If you like jQuery and use JSP, you should consider learning JSF and use primefaces since primefaces already heavily uses jQuery, meaning if you have to personalize the behavior of its controls, you are already presented with a familiar interface.
Primefaces sheet seems to provide what you're looking for, which is to say, something similar to an excel sheet.

Is there a button UI design tutorial? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I've been browsing for a tutorial that covers basic button UI design (e.g. colors, effects, and etc.). Since I'm designing a component of my own, I was hoping there was some sort of tutorial that could guide me in making the correct design choices (aesthetically speaking...).
For instance, this tutorial should be able to guide me in answering some of the following questions:
What should a button look like when it's pressed?
What should a button look like when it's hovered over?
I tagged this as a Java Swing-specific question since that's the language that I will be utilizing. And yes, I've used the existing component behavior as a guideline, but I would like something more definitive.
Note: this tutorial does not need to be Java Swing-specific!
Something like this.
The Java Look & Feel Design Guidelines has some detail on button image design:
http://oracle.com/technetwork/java/hig-142056.html#52291 (thanks Olivier for supplying an updated link)
You should look on UI templates and choose something that look appropriate (even on website template and flash), and then customize the swing components according to this look.
if your want your gui to look a little bit more updated, try swingx
check their UI it look pretty good.

Looking for a plug in for eclipse to draw state charts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am using Java in eclipse, It would be wonderful if I could find a plug in which can draw state chart from a XML format.
I don't know about plug-ins for Eclipse, but I'd recommend AT&T's graphviz as a terrific tool for easily rendering states and transitions. The input format is not XML; however, it'd be trivial to read an XML file, generate the required format, and render it using graphviz. Laszlo Szathmary has a nice Java class that lets you do it right inside a Java class - very nice.
Check out Eclipse's Graphical Editing Framework(GEF). It should have everything you need. http://www.eclipse.org/gef/overview.html

Categories

Resources