JPanel ButtonPanel = new JPanel();
ButtonPanel.setLayout(new BorderLayout());
ButtonPanel.setBorder(new EmptyBorder(new Insets(5, 10, 5, 10)));
ButtonPanel.setPreferredSize(new Dimension(120, 44));
ButtonPanel.add(mDetailsButton, BorderLayout.NORTH);
if ( data.useRtl() ) { ButtonPanel.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); }
contentPanel.add(varLabel, BorderLayout.NORTH);
contentPanel.add(ButtonPanel, BorderLayout.EAST);
contentPanel.add(label2, BorderLayout.CENTER);