How to align swing components with text vertically?

In my Editor, I have a swing component next to a normal text which currently looks like as follows:

As it can be seen, the JButtons aren't vertically aligned within the text. 

How to align both vertically, so the swing editor component has the same height as the text?



Please sign in to leave a comment.