Search:

Type: Posts; User: Sedu

Search: Search took 0.21 seconds.

  1. Re: Transferring co-ordinates from a design program, to an array in Java?

    When you pull the file in as a string value, is your data separated by commas, as in the example above? If so, this is very easy to do. If you are guaranteed that each comma delimited value is a...
  2. Replies
    0
    Views
    174

    Saving and Loading Styled Text (JTextPane)

    I am working on a program that includes a JTextPane where users can enter styled text (different fonts, sizes, colors, etc. all within the same pane). I need to be able to convert the contents of...
  3. Replies
    3
    Views
    277

    [SOLVED] Re: Complex formatting within a text field

    Tracked down an answer to my own question! For anyone in the future looking for how to do this, here's a link to a really good tutorial that goes over the basics of TextPanes and the more complex...
  4. Replies
    3
    Views
    277

    [SOLVED] Re: Complex formatting within a text field

    Hrm, the link is a good intro to basics, but I have a pretty solid grasp of those. Specifically what I am trying to do is have text within a single display element that has multiple different fonts...
  5. Replies
    3
    Views
    277

    [SOLVED] Complex formatting within a text field

    I'm trying to figure out a good way to allow my users to have some formatting options within a text box in my application. Ultimately, they need to be able to have text that is alternating between...
  6. Replies
    2
    Views
    186

    [SOLVED] Re: Scrolling in panel won't work

    Thanks for the link, that led me to exactly the stuff I needed!
  7. Replies
    2
    Views
    186

    [SOLVED] Scrolling in panel won't work

    I've got a pretty specific question here, and I'm hoping that I'm just missing something obvious. I've got a panel which an arbitrary number of text fields may be added to at run time (there's no way...
  8. Replies
    2
    Views
    323

    [SOLVED] Re: folder/object browsing menu in Java

    UGH, I'm dumb. This was right in front of me the entire time, and I made a post anyhow. X|

    You called it in one, Cornix, thanks!
  9. Replies
    2
    Views
    323

    [SOLVED] folder/object browsing menu in Java

    Below is a picture of a menu where users can browse through a hierarchical structure of folders and objects in a node/leaf pattern. Is there any built in way to do this with AWT/Swing? The picture is...
  10. Replies
    4
    Views
    180

    [SOLVED] Re: Table update problems

    I found a solution to this. It's a little bit hackey, but it works. Essentially, I just pull the value from the cell editor rather than the model, which is... not ideal, but works. The fix is below,...
  11. Replies
    4
    Views
    180

    [SOLVED] Re: Table update problems

    So I have tried all of the below to get the data model to refresh, but the only thing I can find that will make the model's data (or the data that the table itself returns) match what is on the...
  12. Replies
    4
    Views
    180

    [SOLVED] Re: Table update problems

    Actually, that was likely me as well. I had a similar problem with updating the scroll bar. The solution to that was to use invokeLater (the reason I mentioned it initially). I'm looking around a bit...
  13. Re: Coding a beginner program and get run time error possible loss of precision

    The problem with
    system.out.println(projSales + "\t\t" + accel); is that Java is case sensitive, and you must capitalize "System."

    The Int/Double problem that you have is not something that...
  14. Replies
    4
    Views
    180

    [SOLVED] Table update problems

    I am having trouble with a jTable that I am using. I have set the listeners of the cells to save the information of the entire table every time they are modified, but run into the problem that the...
  15. Replies
    5
    Views
    200

    Re: Scroll Positioning Problem

    Cornix, thank you for the suggestion! Invokelater was exactly what I needed here. Below is my corrected code, now working correctly. This is a really good trick to remember...


    private void...
  16. Replies
    5
    Views
    200

    Re: Scroll Positioning Problem

    Good thought, but I've already attempted that. There's even a getBlockIncrement() function on the scrollbar (example of that non-working code below), which represents the int value of one entry's...
  17. Replies
    5
    Views
    200

    Scroll Positioning Problem

    Heyo, guys! I've got a problem that really has me scratching my head here. I have a JTable inside a JScrollPane. My code (below) adds an entry to the table, then tells the scroll pane to scroll to...
Results 1 to 17 of 17