-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rounding for jTextArea #594
Comments
If the |
It is but I dont know any way to round a JScrollPane |
As far as I see this heavily depends whether you embed the JTextArea into a scrollbar or not. If it is embedded, you need to put the FlatTextBorder on the JScrollPane (which results all scrollpanes to use this border - but in my tests, I did not see this border for JTables or JLists). If it is not embedded, you need to put the FlatTextBorder on the JTextArea At the moment I am unsure how to handle mixing this without using component properties... |
looks like rounded JScrollPane contents are rather complicated, because the viewport draws the clipped part into the corners (at least this is what I found out while trying to implement that). I hope @DevCharly has a better idea how to solve that |
I found a workaround by creating a new component for a JTextArea (mostly by merging code from the UI for JTextArea and JTextField) which is not inside a JScrollPane:
and register that to FlatLaf:
I know this is rather hacky, but at least that works for my use case |
There is now a draft PR for rounded scrollpanes. See PR #713. |
looks promising. When will this be available in the FlatLaf release? |
implemented in latest |
Hey I wondered if you could add an option to round the jTextArea?
The text was updated successfully, but these errors were encountered: