Search:

Type: Posts; User: mariosarmy

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    WOW Thanks so much , i was very close.How i will become so good as you? You read many books , hours of programming or it's a secret ;))
    How i will give you a thumps up for the help?
    :cool:
  2. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    My task is very simple.Look Equivalent Fractions.I want to do that using java language.When i drag the slider to paint rows(or columns) in the white box.
    First, i am not sure if my though is correct...
  3. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    I divide the size of jpanel with the slider value, so if the user selects 2(counter) then stepping=400/counter and then with a for loop i want to draw lines each time +stepping

    paint component(){...
  4. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    I have created a jframe, jpanel and jslider then i have add change listener on jslider so on change i save the value in variable and i have a for loop to draw n lines in jpanel.I have created a...
  5. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    I have read the lessons but my problem remains can anyone help me with my code?My purpose is to divide a jpanel when i slide the slider.For example when i slide to 2 then divide the jpanel with a...
  6. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    Yes that i want to do! Can you suggest me links that can help me with that?



    MyDrawPanel panel;
    JFrame frame;
    int x = 0;
    int counter = 0;
    int stepping = 0;
    JSlider...
  7. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    I want to divide equally a jpanel by creating random sub panel with the slider value. something like this Equivalent Fractions



    public class DividePanel {

    JPanel PanelBoxes;

    ...
  8. Replies
    18
    Views
    1,472

    Re: I have a problem with slider in java swing

    Can you explain me please how to do it with the right way? :)
    I noticed that when i tried to resize the jframe the components appeared.
  9. Replies
    18
    Views
    1,472

    I have a problem with slider in java swing

    Hello,
    I have a problem with slider which i want to create jlabels in a panel by sliding the slider and get the value but the jlabel doesn't show in jpanel.below is the code :


    JPanel...
Results 1 to 9 of 9