Volume Button (with Circular Jslider?)

Asked

Viewed 34 times

0

Hello, my team and I are making a synthesizer for college work, in case I am doing the graphical interface and would like to make the following buttons:

Botões

The mixing buttons would work like this online keyboard: Synthesizer.

I believe I should use a Circular Jslider under the button, or even in place of the button, because of how it rotates the buttons of the online synthesizer that I Inkei (I believe would be easier for the user), however, I still have no idea how to do. Does anyone know any good material (even Pdfs), preferably in Portuguese, for me to try to learn about 2D Graphics and Jslider?

  • 1

    There is no teaching material for gambiarra

  • I do not expect a tutorial on the material, I want to learn how to use the methods so I can develop "my gambiarras". Even if this is a gambit, it tells me an ideal method of doing...

  • I don’t think it’s Gambi. You can draw the buttons the way you want and with transparent background and try to rotate it according to the action of the mouse on top of them

  • Take a look at: https://stackoverflow.com/questions/6828684/java-mouseevent-check-if-pressed-down, https://stackoverflow.com/questions/14124593/how-to-rotate-graphics-in-java and https://stackoverflow.com/questions/6828684/java-mouseevent-check-if-pressed-down

  • Again with the same question? I already told you and explained that it is not possible anything natively ready, You will have to write a component like this in your hand, so you recreate the same question?

  • Another thing the site does not recommend materials, your question is out of scope. But since you want to tutorial, the best is this one: https://docs.oracle.com/javase/tutorial/uiswing/index.html

  • Articuno, I re-asked the question because I had to edit the other one several times (to get to this), and yes, I know that there is nothing ready, I wanted to know if it can do the way I said, use 2D Graphics to edit a Jslider component in the way I intend, and in case, I asked for materials to give a study and try to do (of course if someone sent ready would be great, it would save me a lot of time, but doing it is more fun), inclusive, thank you Marcelo Uchimura, to give a read here and will be very useful, and thanks for the link also Articuno, I will give a studied here.

  • No, we can not do just using Graphics, I repeated 3x Voce need to create a component from scratch, since you do not want to use background images as said in the other question. I’m giving you the right path, but you insist on going the hard way, good luck then. And your question remains outside the scope anyway, I recommend you read [Ask]

  • It’s because I hadn’t understood your answer until then... What would be the level of difficulty of creating a component from scratch (and has some hint of how I would do it)?

  • It depends on your level of knowledge of the API. If you master the API, you will have less difficulty, but still have some. Now if you don’t know anything about the API, then it’s best to study alternatives, such as using another API or language that supports it in an easier way to implement. I’ve never had to "reinvent the wheel" like Oce is doing. So before we develop anything, we need to study the API that we’ll use to see if it supports this. The swing learning curve is very high.

  • All right, vlws, I’m going to do a little research and study, if it works out I’ll put the code here later to close the topic, or else I’ll quit and delete the same.

  • I recommend you start from the beginning, study the API, and learn the basics of it if you don’t already know. Then evaluate whether it is feasible to do this, sometimes we need to change the requirement and adapt it if we want to finish a project. If time is no problem for you, then change the question, and you can explore in the background how to do it the way you want.

Show 7 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.