For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
I have a dynamic IR using a Collection. I need to programmatically set the frozen column, and was wondering if this is possible via javascript or the Oracle side API?
Thanks
Stephen
import java.awt.*; import javax.swing.*; import javax.swing.plaf.*; public class TabbedPaneWithText extends JFrame { public TabbedPaneWithText() { JTabbedPane tabbedPane = new JTabbedPane() { public void paintComponent(Graphics g) { super.paintComponent(g); Rectangle lastTab = getUI().getTabBounds(this, getTabCount() - 1); int tabEnd = lastTab.x + lastTab.width; String text = "Some Text"; FontMetrics fm = getFontMetrics( getFont() ); int stringWidth = fm.stringWidth( text ) + 10; int x = getSize().width - stringWidth; if (x < tabEnd) x = tabEnd; g.drawString(text, x + 5, 18); } }; tabbedPane.add("1", new JTextField("one")); tabbedPane.add("2", new JTextField("two")); getContentPane().add(tabbedPane); } public static void main(String args[]) { TabbedPaneWithText frame = new TabbedPaneWithText(); frame.setDefaultCloseOperation( EXIT_ON_CLOSE ); frame.pack(); frame.setLocationRelativeTo( null ); frame.setVisible(true); } }