Search:

Type: Posts; User: GregBrannon

Search: Search took 0.09 seconds.

  1. Re: I have a problem with slider in java swing

    There's no secret sauce or handshake, Vulcan mind meld, or shortcut to acquiring the skills and confidence in using them. It's all practice, practice, and more practice. Reading the books doesn't...
  2. Re: I have a problem with slider in java swing

    You made good progress and were almost there. You're getting frustrated. I made some minor changes with comments plus a few others I can't help making. (It's an OCD thing.) Let me know if you have...
  3. Re: I have a problem with slider in java swing

    Are you meaning to use the paintComponent() method? Please properly post actual code, copied and pasted. Guessing at what you meant to post when typos are involved is just wasting time.

    Also,...
  4. Re: I have a problem with slider in java swing

    There is some simple math involved:

    Read the row/column sliders
    Determine the size of the drawing area
    Divide the appropriate dimension of the drawing area into an equal number of rows/columns...
  5. Re: I have a problem with slider in java swing

    It's not clear how you applied what you 'learned' in the lesson to your project. Can you clarify?
  6. Re: I have a problem with slider in java swing

    Java Custom Painting Lesson.
  7. Re: I have a problem with slider in java swing

    I don't think you're really wanting to do anything 'randomly,' and adding JLabels to a component is not the same thing as dividing a component's area into grids.

    Are you saying the slider along...
  8. Re: I have a problem with slider in java swing

    Can you explain better what the program is supposed to do? Right now, it adds 2 labels to panelBoxes each time a slider changes. I'm assuming that's a building block to where you'd like to go, so...
  9. Re: I have a problem with slider in java swing

    Adding components to a container "on the fly" isn't the recommended approach, but if you're set on it, then validate() the container after adding.
Results 1 to 9 of 9