can anyone help me to draw clock cycle in java using swing
when i give 5 clock then it will show me 5 clock cycles

I don't understand what exactly you are trying to do, and judging by the lack of responses I expect nobody else does either!
Can you explain exactly what you mean by "show me 5 clock cycles"? Maybe a diagram or illustration of your desired output would help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.