Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. borbjo

    Desktop test

    Thanks for answering guys! Yes, I got that part too .. but what I didn't get is why it works with a JButton then? A JButton in the same place would receive the click. Also, using the InternalFrameActivated() is a good idea, but it won't be an easy solution to implement - since my original app...
  2. borbjo

    Desktop test

    Check out the code below. Save it as DesktopTest.java, compile & run - it's pretty straightforward. It's a desktop with 3 internal frames. One contains a JButton, while two of them contains a custom JComponent that is a black square which turns blue when the mouse is over it. The problem is -...
  3. borbjo

    Drag&Drop from one JInternalFrame to another?

    It's just a custom JComponent inside a JInternalFrame (a 'view').
  4. borbjo

    Drag&Drop from one JInternalFrame to another?

    This question has been asked a lot in the Java forums, but I have yet to see an solution to this particular problem. I have a JDesktopPane with two JInternalFrames. One is the 'editor window / working surface' while the other is a toolbar with icons on it. The idea is that the user may drag...
  5. borbjo

    Feedback on design of Word-like application

    One of my main problems is how objects that are in use could be edited by the user (eg. Styles). Because the user should be able to choose "OK" og "Cancel" in the dialog where he edits the styles that are in use in the document. Should I clone() a style before the user edits it? If so, I would...
  6. borbjo

    Feedback on design of Word-like application

    Thanks for that reply dbleyl :) .. I'm already using the Composite pattern by GoF, and I'm using JAXB as the layer between the JDBC and the client application. The reason I would use singelton is to access the same object from several different classes (e.g. if I would like to access the same...
  7. borbjo

    Feedback on design of Word-like application

    I would like some feedback on the design of this 'Word'-like application: The application --------------------- I'm implementing a 'Word' kind of application with Paragraph and Character styles. Character styles inherit information from the paragraph styles they belong to, and paragraph styles...
  8. borbjo

    Visual Java

    http://uic.sourceforge.net/ "This product was born out of the frustration of working with Swing GUIs which is anything but easy. Commercial (or free) designers failed to provide a good answer. After you created your first application with UICompiler, you will agree." - bjorn
  9. borbjo

    Bullet list in JTextPane

    Thanks, but I need to do it in a JTextPane in combination with a StyledDocument...
  10. borbjo

    How does java give a correct answer??

    http://www.google.com/search?q=the+answer+to+life+the+universe+and+everything&ie=UTF-8&oe=UTF-8&hl=no&btnG=Google-s%C3%B8k
  11. borbjo

    Bullet list in JTextPane

    Anyone have links to info about implementing bullets in JTextPane (DefaultStyledDocument). Or hints? :)
  12. borbjo

    using InputStream.available() when recieving data from server

    Ok, thank you for that explanation Ion :)
  13. borbjo

    using InputStream.available() when recieving data from server

    Hmm, it doesn't seem that way, cause I get available()==0 about 1 of 10 times when I know the server sends the same response each time.
  14. borbjo

    using InputStream.available() when recieving data from server

    I use InputStream.available() when recieving data from server to see if the server responded. If it is 0, I do not do anything (assume the response was negative).. But does it wait for the server, or could it give me 0 in a case where the server has not yet responded?
  15. borbjo

    display message if input is alpha character?

    try { int i = Integer.parseInt(inputFromUser); } catch(NumberFormatException nfe) { // user did not enter integer, do something here. }
  16. borbjo

    Java, opening an explorer window.

    BrowserLauncher.openURL("https://www.root.no/"); Use the BrowserLauncher class below. import java.io.File; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import...
  17. borbjo

    Kerning in StyledDocument (or fonts) ?

    Is it possible? The problem: I have created a WYSIWYG editor that generates a PDF. The client (Swing) uses a JTextPane and TrueType fonts, and the PDF is generated on the server using PostScript fonts that are equivalent to the TTF fonts. The problem is that the lines are wrapped differently...
  18. borbjo

    which Programming Language?

    Windows .NET - C# or Visual Basic
  19. borbjo

    DefaultStyledDocument.styleChanged() question

    I use this method to notify the document that a style has changed. It works fine for Paragraph Styles - but not for Character Styles. Character Styles = styles added with doc.setCharacterAttributes(offset, length, s, replace); Paragraph Styles = styles added with...
  20. borbjo

    get data from a java applet from the client

    Use HTTPS then. Should work. Alternatively post encrypted info. And decrypt it on the server. - bjorn

Part and Inventory Search

Back
Top