Highlight « Graphics « Java Swing Q&A





1. looking for Java GUI components / ideas for syntax highlighting    stackoverflow.com

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 ...

2. What's the best guess for "highlight color" in Java Swing?    stackoverflow.com

I'm writing a program that lets people highlight surfaces by dragging the mouse. (Just like the highlighted rectangles you can do make in most operating systems on the desktop). Trouble is, what ...

3. What is a suitable Java library for XML Syntax highlighting?    stackoverflow.com

I have a APP in JavaSwing with a JTextArea where is displayed a XML result for user. What is a suitable library to make this XML code in HighLighted Syntax? ...

4. Is there SQL-syntax aware Swing component?    stackoverflow.com

I am looking for some Java Swing component (textarea like) which is aware of SQL syntax - meaning it recognizes and highlights it. If there isn't I will need to do ...

5. Qt: how do I highlight duplicated items in QListWidget? (qtjambi)    stackoverflow.com

I need to implement a mechanism of highlighting duplicated values. Values are edited through delegate depending on the value type (string - line edit, long and big decimal - spin boxes). ...

6. Highlighting Links    stackoverflow.com

I am creating a Help System that uses links (a JButton extension) that expand and collapse subpanels with JLabels in them. The links and the collapsible panels work, but I'm having ...

7. javame: is it possible to disable highlight decrease and screen locking while my application is running    stackoverflow.com

I am developing a game where big pauses happen when no user actions (1-5 min).
I'd like the user can watch what happen in the game during those pauses.
Usual phone has 2 ...

8. Textcolor While Highlighting    coderanch.com

9. Syntax Highlighting    coderanch.com

I am tyring to figure out how sytax highlighting is accomplished in Java based IDE's such as Forte and JEdit. I have looked through some of the source for JEdit and NetBeans but I am having problems locating the code that I need. Anyone have any links that show this or know how to do it themselves? Thanks!





10. Syntax Highlighting    coderanch.com

hi, I don't think lucene is the best choice for syntax highlighting. in a programming language most of the tokens will be hits, so a parser that looks at each token one after another is more effective. moreover, lucene has to build up an index to be able to return hits - do you want to rebuilt an index after the ...

11. Adding syntax highlighting to existing application.    coderanch.com

Hi, I have developed an editor and am hoping to add syntax highlighting with out changing to much of my code. The main method of the editor is given below private static JFrame mainFrame=new JFrame(); public static void main(String[] args) { MyEditor edit=new MyEditor(); mainFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); mainFrame.setTitle(resources.getString(title)+" - "+resources.getString(newFile)); mainFrame.setBackground(Color.lightGray); mainFrame.getContentPane().setLayout(new BorderLayout()); mainFrame.getContentPane().add("Center", edit); mainFrame.addWindowListener(edit.new AppCloser()); mainFrame.pack(); File f =null; if (args!=null ...

12. Highlight color    coderanch.com

13. highlighting files    coderanch.com

14. Syntax highlighting using WordRule    coderanch.com

Originally posted by RamaShankar Miryala: Hi, Code: ===== Color color = new Color(Display.getCurrent(), 0, 0, 0); IToken plainCode =new Token(new TextAttribute(color)); WordRule keywordsRule = new WordRule(new IWordDetector(){ public boolean isWordStart(char c) { return Character.isLetterOrDigit(c) || Character.isJavaIdentifierStart(c); } public boolean isWordPart(char c) { return (c == '.') || Character.isLetterOrDigit(c) || Character.isJavaIdentifierPart(c); } },plainCode); String keyword = "Test"; keywordsRule.addWord(keyword,plainCode ); I am not ...

15. to highlight a item in a java awt list    coderanch.com

16. highlight word when audio is played    java-forums.org

hi... I ve a "a.txt" and "a.mp3" file in bin. When i select "a.txt" file the "a.mp3" is being played. The contents of "a.txt" is displayed on a text area. Now when the audio from the "mp3" file is played the corresponding words must be highlighted in the text area...i dont know how to continue this.. Can anyone suggest me good ...