Search:

Type: Posts; User: startas

Page 1 of 2 1 2

Search: Search took 0.25 seconds.

  1. Replies
    7
    Views
    579

    Re: netbeans crazy scrolling behaviour

    It is in the middle of the same line.
  2. Replies
    2
    Views
    18,805

    Re: Waiting for another thread to finish

    try {
    thread2.join();
    }
    catch(InterruptedException e) {
    System.out.println("Exception caught : " + e);
    }

    It works.
  3. Replies
    7
    Views
    579

    Re: netbeans crazy scrolling behaviour

    http://s8.postimg.org/3vpwyclit/new.png
    I scroll to position nr 1, to see my code, and when i start writing in the middle of screen, scrollhell just scrolls back to position number 2 automatically...
  4. Replies
    7
    Views
    579

    Re: netbeans crazy scrolling behaviour

    I dont need line wrapping, i need to disable autoscrolling.
  5. Replies
    7
    Views
    579

    netbeans crazy scrolling behaviour

    netbeans automatic scrolling is just driving me crazy, as fast as i start writing, horizontal scrollbar position just resets, i cannot handle it anymore, how to disable it?
  6. Re: Math Fromula y=x2+6x+5 how to convert to Java Programming code

    Well, that's shame, x^2 is simply x*x.
  7. Replies
    7
    Views
    515

    Re: Add shadow for text in JTextArea

    I'm trying, but results are not good. In this case google is more of an enemy, because there is no good articles about it, just a few about one or another thing, but no one is about all things...
  8. Replies
    7
    Views
    515

    Re: Add shadow for text in JTextArea

    Yeah, i tried, but it's still unclear :
    1) If i use Graphics/2D, then i convert String into Graphics, there is no usage of real text fields/areas, just converting text into graphics and working with...
  9. Replies
    7
    Views
    515

    Re: Add shadow for text in JTextArea

    Well, i dont know where to start, i only googled for these things, but i found very little info about shadows and other things on text in java, so it's still not clear, if:
    1) java fully supports...
  10. Replies
    7
    Views
    515

    Add shadow for text in JTextArea

    So, i use JTextArea in my program to show multiline text with custom font, is it possible/and easy to add a shadow to text in JTextArea ?
    And second question, maybe it's possible to use css styles...
  11. Replies
    5
    Views
    289

    Re: Changing a JButton background

    If you mean to set a picture on jbutton, you can do that with
    button.setIcon(new ImageIcon("full image path here(c:/my/images/bigboom.jpg), or path in working directory(boom.png), image types of...
  12. Replies
    2
    Views
    391

    Re: Set JButton's mouse events to JTextField

    Thanks, i wrote mouseEntered(), mouseExited(), mousePressed(), mouseReleased(), mouseClicked() methods and it works perfectly.
  13. Replies
    2
    Views
    391

    Set JButton's mouse events to JTextField

    So, i have a JButton and a JTextField, and i need a way to connect both elements mouse events and make them act like JButton's mouse events. I.e., if i click on text field, button is clicked too, if...
  14. Replies
    4
    Views
    183

    Re: Help with easy programming

    Well, you are not converting your new code of lower case character to a real lower case character, you just pick a number and put it to string, you need to use "Character.toChars(97)".
  15. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    I'm making a simple game, and part of the game is elements, that randomly appears/disappears at random positions, i realised these elements via jbutton, and i'm looking for the best way to keep these...
  16. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    Well, visually. I have a few panels-tabs, tabs has their own elements, and i need a way to add somewhere element, which will be visible over all other elements, so far the only way i found is to add...
  17. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    So the only variant to keep one element over every other element is to add that element directly to frame, i.e. JFrame frame.add(button, 0) ?
  18. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    If i have a simple JTabbedPane tabbedPane, and i add a few tabs to it with tabbedPane.addTab("name", JPanel panel), is it possible to add the same one element, i.e. JButton, to all of those...
  19. Re: Illegal Start of Expression in IF Statement

    You should post declarations of you variables, there might be something with it, also, you can check your grammar, there is spelling mistakes in almost every word, and you can write your program in...
  20. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    Ok, my bad, update : it's not the point if it is jpanel or jlabel or jbutton or whatever, the point is, i can set frame's size i.e. to 1300x700, but i cant fit other elements into frame's work place...
  21. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    It will be just a program for myself, so no different pcs, especially devices, and screens. I'm just starting to build my programs gui, but initial code looks like this :


    import...
  22. Replies
    17
    Views
    1,236

    Re: How to get visible size of jpanel

    I dont like layout managers and the way they work, so i dont use them, i do everything manually, it is much easier to place elements in the right place manualy, layout manager is like stupid AI in...
  23. Replies
    17
    Views
    1,236

    How to get visible size of jpanel

    2308
    So, i noticed a little misbehavior in java with all the sizes of jpanel. When i set bounds of jpanel, i.e., setbounds(0, 0, 100, 100), then the first point's (0,0) position is normal, but the...
  24. Re: Does javax.swing.JToggleButton even lift ??

    I will try it later, and please read everything, not just what you want.
  25. Re: Does javax.swing.JToggleButton even lift ??

    setSelectedIcon is not what i needed (or just a wrong name choosen by devs), i have made my own real toggle buttons. I have a few more questions, i did not google about them yet, but maybe you know...
Results 1 to 25 of 37
Page 1 of 2 1 2