JTabbedPane with RTL

Discuss here any questions about the WebLaF library.
Bugs can be posted directly to GitHub issues tracker.

JTabbedPane with RTL

Postby Abu Abdullah » Sat Aug 11, 2012 1:15 pm

Hi,

JTabbedPane in RTL is not aligned as in LTR:

LTR:
1.png
1.png (8.79 KiB) Viewed 4910 times


RTL
2.png
2.png (8.77 KiB) Viewed 4910 times


the left tabbedPane border is not shown

Code: Select all
import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
import java.io.*;
import javax.swing.plaf.*;
import com.alee.laf.*;

class Test1 extends JFrame
{
   public Test1()
   {
      final JTabbedPane treeTabbedPane = new JTabbedPane();
        treeTabbedPane.addTab("TEST", null);
        treeTabbedPane.addTab("TEST", null);
      
        final JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true);
        splitPane2.setResizeWeight(.5D);

        splitPane2.setLeftComponent(new JLabel("   "));
        splitPane2.setRightComponent(treeTabbedPane);
      
      JComboBox cb = new JComboBox(new String [] {"0", "1", "2", "3", "4"});
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      setSize(200, 100);
      getContentPane().add(splitPane2);
      
      getContentPane().applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
      setVisible(true);
   }
   
   public static void main(String args[])
   {
      //WebLookAndFeel.comboBoxFont = new Font("Tahoma", Font.PLAIN, 11);
      WebLookAndFeel.install();
      SwingUtilities.invokeLater(new Runnable(){public void run(){new Test1();}});
   }
}
Abu Abdullah
 
Posts: 41
Joined: Tue Apr 17, 2012 12:11 pm

Re: JTabbedPane with RTL

Postby mgarin » Sun Aug 12, 2012 4:11 pm

Thats an issue i am aware of :)
Will be fixin it soon
User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg

Re: JTabbedPane with RTL

Postby mgarin » Thu Sep 05, 2013 1:16 pm

User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg

Re: JTabbedPane with RTL

Postby Abu Abdullah » Sun Jul 13, 2014 9:56 pm

Hi Mikle,

appreciate if this bug can be scheduled.
Abu Abdullah
 
Posts: 41
Joined: Tue Apr 17, 2012 12:11 pm

Re: JTabbedPane with RTL

Postby mgarin » Wed Jul 16, 2014 11:27 am

Tabbed pane UI will most probably be revamped in v1.30 or in v1.31 update, I'm just not yet sure whether it will make it into the v1.30 or not due to other planned changes.

And sorry for the delay, I'm not getting informed about forum messages due to some mailing issues on the hosting, will fix that soon. GitHub issue tracker works fine though :)
User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg


Return to Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron