oxbow icon indicating copy to clipboard operation
oxbow copied to clipboard

ComponentOrientation problem

Open amirshaneh opened this issue 10 years ago • 4 comments

when i set the table to table.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

the swingbit UI stops working

amirshaneh avatar Aug 28 '15 15:08 amirshaneh

I would need more specifics to investiagate

eugener avatar Aug 28 '15 17:08 eugener

what specifics do you refer to? i have a JTable that is populated from an mySQL database. the default orientation for any component is LEFT_TO_RIGHT. but since here we use a RIGHT_TO_LEFT i had to change the table orientation to RIGHT_TO_LEFT. when the table is at the default the UI works great i right click on any column and the filter UI opens. when the table is setup to be RIGHT_TO_LEFT nothing happens when i right click on the columns.

amirshaneh avatar Aug 29 '15 17:08 amirshaneh

Who is this ???

Sent from my iPhone

On 29-Aug-2015, at 12:06 pm, amirshaneh [email protected] wrote:

what specifics do you refer to? i have a JTable that is populated from an mySQL database. the default orientation for any component is LEFT_TO_RIGHT. but since here we use a RIGHT_TO_LEFT i had to change the table orientation to RIGHT_TO_LEFT. when the table is at the default the UI works great i right click on any column and the filter UI opens. when the table is setup to be RIGHT_TO_LEFT nothing happens when i right click on the columns.

— Reply to this email directly or view it on GitHub.

enaamks avatar Aug 29 '15 20:08 enaamks

After some digging in the source code i have found a couple of hints but yet to resolve this issue.

  1. i verified that when pressed it does send command to the listener that isPopupTrigger
  2. and the big success was that i found out that if i resize the column width to be big enough then it actually does work. so i went further and im pretty sure the issue is being caused from the popup menu itself, ill try to dig in for it more later on, would be nice if i can get some assistance with solving this issue.

as for your question i'm just a stranger that wants to get this modification work for RIGHT_TO_LEFT table since here we are using RIGHT_TO_LEFT.

i'm sure the solution will benefit many others and not just myself

Regards. Amir

amirshaneh avatar Sep 07 '15 21:09 amirshaneh