How to avoid auto resizing the JPanel

I have JFrame as main window. This JFrame consist of statusbar at the bottom of the JFrame. The statusbar has implemented as a panel that uses BorderLayout. This statusbar has two JPanels as children.
1) the first child panel(label panel) has 3 labels on it.
2) the second child panel(image panel) has only one label with a image and this second panel is added to statusbar to the next of the first child.
3) all panels use BorderLayout.
If I resize the JFrame by dragging its right border (right to left) both the panels on the statusbar are auto resizing. But I don't want to resize the image panel on the statusbar. I mean even if I resize the frame the size of the image panel should not change. It has to always visible completly.
Any help is heighly appreciated.
Regards
Venkat

There could be several different ways to achieve this, but it all boils down to using appropriate layouts and/or preferredSizes.
The Java™ Tutorials: [Laying Out Components Within a Container|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]
db

Similar Messages

  • How to avoid form resizing

    Hi, i've done an xml form and i want to know how to avoid form resizing(in xml).
    This is te form definition:
    <form AutoManaged="0" BorderStyle="0" FormType="2000060004" ObjectType="" SupportedModes="0" appformnumber="2000060004" client_height="375" client_width="500" color="0" default_button="" height="400" left="259" pane="0" title="Variables" top="107" type="0" uid="FrmSelVar" visible="1" width="520">
    Does anyone knows the answer? Thanks!

    Hi Miguel Angel,
    Have a look at the BorderStyle property in the help file.
    I think fbs_Fixed (4) value is what you are looking for.
    Regards,
    Ibai Peñ

  • How to disable auto resizing for jComboBox

    Hi,
    I do not know how to prevent jComboBox to be auto resized according to its content. I put a jComboBox on JPanel with IDE.
    After that I use for loop to fill a jComboBox. JComboBox width depends on the content and jComboBox is autoresized. I tried to use set*Size before and after for loop but it did not work as I wish:
            jComboBoxT.setMaximumSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setMinimumSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setPreferredSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setSize(new java.awt.Dimension(10, 20));Could you help me please? The problem is that I have three jComboBox in one row and after autoresizing one disappears...
    Best regards,
    Primoz

    Hi,
    I have created SSCCE. I do not like that jComboBox spread over the whole display. I would like that the jComboBox width is only about 2 inches (5cm). If you run example below you will see that jComboBox width auto resize.
    Regards,
    Primoz
    import java.awt.*;
    import javax.swing.*;
    public class PrimozComboBox extends JPanel {
        JLabel picture;
        public PrimozComboBox() {
            String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
            String[] cityStrings = { "New York", "Ljubljana", "Chicago" };
            JComboBox petList = new JComboBox(petStrings);
            petList.addItem("This is very long pet name, which could spread over many lines");
            add(petList);
            JComboBox cityList = new JComboBox(cityStrings);     
            cityList.addItem("This is very long city name, which could spread over many lines");
            add(cityList);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new PrimozComboBox();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • I want to keep the content when resizing the JPanel

    I draw some shade random on a JPanel.
    when I resize or maxium or minum the JFrame which the Jpanel is on , all the shades disppeared.
    How can I keep it?is there a simple way?
    maybe this question has been asked many times, but I searched nothing
    need help

    You must override the method paint(Graphics g) in your application and redraw the shades there. This implies that you must save the shade state.
    Regards

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • How do you auto hide the finder menu bar

    Prior to Mavericks, I could auto hide the finder menu bar by inserting:
    <key>LSUIPresentationMode</key>
    <integer>4</integer>
    in the finder info.plist after accessing core services/finderapp/contents/resources, but now in the Mavericks OSX, I receive the following error message:
    "Finder Quit Unexpectantly" and a list of various reasons; codes; etc too long to list here.  Is auto hiding the finder menu bar even doable anymore in this operating system, and if so what is the solution?

    How do you reverse that process?  I was trying it with various apps, substituting the app name in the terminal command and it worked great until I got to the "Notes" app.  I think it messed up how notes synced with iCloud.
    Thanks

  • How can I auto-hide the TOC

    I'm using RoboHelp 8 and have a WebHelp project in which I'd like the output to auto-hide the TOC, allowing the user to click to open it if needed. There doesn't appear to be an option for that. Instead, the user can currently choose to close it, but it defaults to Open. Any ideas on how I might accomplish this?
    Thanks in advance for your help!

    Hi there
    You might also check out my Skinny on Skins file. (freely available at the link below)
    Click here to view
    There are some ways outlined in it.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to avoid turning off the iPhone when its locked.

    Hiya,
    Wondering if there is any settings to avoid turing off the iPhone when its locked. When the phone is locked with passcode holding the power button on the top provides the option to turn off the phone. So is there any way to restrict it?
    Thanks,
    SaN

    No.

  • How to do Auto Resize Photo Gallery

    I want to create a photo gallery where the photos don't have to be the same size. I need the photo border or container to smoothly resize to accomadate each new image.  Can someone explain the basic procedure to accomplish this with Flash?
    Thanks for the help, Mike

    This does work. Thanks very much for all your help. If you don't mind, I just have a couple more questions and then I will let you get back to your normal life. Let me see if i'm reading this right...First you retrieve the dimensions of the loaded image; then you set the loader object's dimensions to match the starting dimensions of the MC that will contain the photo; then you put the loader object inside the MC container; then you resize the MC container to the size of the photo.  Right?  1st question: why is it necessary to set the loader object's size to match the initial size of the container MC?  I tried adding the loader object to the MC without resizing the loader object first, and it didn't seem to change the outcome of the movie.  2nd question: Now that you've solved the general problem, I suppose all I have to do is change the final step in the procedure. Instead of simlpy setting the dimensions of the MC container, I should apply some sort of tween to the MC to make transitions between photos a little more interesting. Yes?
    var imagePath:URLRequest = new URLRequest("testPhoto3.jpg");
    var imageLoader:Loader = new Loader();
    imageLoader.load(imagePath);
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, getDimensions);
    function getDimensions(evt:Event):void
    //get the height and width of the loaded image
    var ht:int = evt.target.content.height;
    var wi:int = evt.target.content.width;
    /*set the dimensions of the loader object equal to the starting
    dimensions of the MC that will hold the photo*/
    imageLoader.width = photoBox_mc.width;
    imageLoader.height = photoBox_mc.height;
    //put the loader object inside the MC that holds the photo
    photoBox_mc.addChild(imageLoader);
    //resize the MC that holds the photo
    photoBox_mc.width = wi;
    photoBox_mc.height = ht;

  • Auto-resize the components of JTabbedPane with JPanels

    Hi,
    We have swing window with tabbed pane having two JPanels. There are couple of components (button/text
    fields/JXTable/Jtree ..etc)added to each panel. so far, every thing is working fine.
    Issue is, when we try to expand the winodw size, the components of each panel are static. The size of components
    are not changing accorning to window size. All the components are center alligned with increasing the window size. It would be great help, if you can help on this.
    Following is the sample code used to prepare  swing window.
    public class SOS extends JFrame implements TreeWillExpandListener,
                                               TreeExpansionListener,
        JPanel firstPanel = new JPanel(new GridBagLayout());
        JPanel secondPanel = new JPanel(new GridBagLayout());
        public SOS() throws SQLException, ParserConfigurationException,
                            SAXException, IOException, XPathExpressionException {
            //EHDD Tabbed Pane
            nehObjectTypelist = new JList((createObjectsListData()).toArray());
            nehObjectTypelist.setFont(font);
            nehObjectTypelist.setCellRenderer(new CheckListRenderer());
            nehObjectTypelist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            nehObjectTypelist.setBorder(new EmptyBorder(0, 4, 0, 0));
            nehObjectTypelist.addMouseListener(new MouseAdapter() {
            JScrollPane nehObjTypeSP = new JScrollPane(nehObjectTypelist);
            nehObjTypeSP.setSize(200, 200);
            nehOwmerslist = new JList((createOwnersListData()).toArray());
            nehOwmerslist.setFont(font);
            nehOwmerslist.setCellRenderer(new CheckListRenderer());
            nehOwmerslist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            nehOwmerslist.setBorder(new EmptyBorder(0, 4, 0, 0));
            nehOwmerslist.addMouseListener(new MouseAdapter() {
            JScrollPane sp = new JScrollPane(nehOwmerslist);
            sp.setSize(200, 200);
            //JTree with checkbox
            DefaultMutableTreeNode root = createFirstLevel();
            final DefaultTreeModel model = new DefaultTreeModel(root);
            nehTree = new JTree(root);
            QuestionCellRenderer renderer = new QuestionCellRenderer();
            nehTree.setCellRenderer(renderer);
            QuestionCellEditor editor = new QuestionCellEditor();
            nehTree.setCellEditor(editor);
            nehTree.setEditable(true);
            nehTree.addTreeWillExpandListener(this);
            nehTree.setShowsRootHandles(true);
            nehTree.setModel(model);
            nehTree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
            JScrollPane scroll = new JScrollPane(nehTree);
            scroll.setPreferredSize(new Dimension(200, 180));
            scroll.setFont(font);
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(1, 1, 1, 1);
            gbc.gridx = 0;
            gbc.gridy = 0;
            //gbc.gridwidth = 2;
            gbc.fill = GridBagConstraints.HORIZONTAL;
            //gbc.anchor = GridBagConstraints.LINE_START;
            JLabel nehHeading =
                new JLabel("Select your criteria and click the Fetch Topics by Criteria button");
            nehHeading.setFont(font);
            firstPanel.add(nehHeading, gbc);
            gbc.insets = new Insets(1, 1, 1, 1);
            gbc.fill = GridBagConstraints.HORIZONTAL;
            gbc.gridx = 0;
            gbc.gridy = 1;
            gbc.gridwidth = 1;
            JLabel nehDocType = new JLabel("Type");
            nehDocType.setFont(font);
            firstPanel.add(nehDocType, gbc);
            gbc.gridx = 1;
            gbc.gridy = 1;
            JLabel nehDocOwner = new JLabel("Owner");
            nehDocOwner.setFont(font);
            firstPanel.add(nehDocOwner, gbc);
            gbc.gridx = 2;
            gbc.gridy = 1;
            JLabel nehProdTree = new JLabel("Tree");
            nehProdTree.setFont(font);
            firstPanel.add(nehProdTree, gbc);
            gbc.weightx = 0;
            gbc.weighty = 0;
            gbc.gridx = 0;
            gbc.gridy = 2;
            firstPanel.add(nehObjTypeSP, gbc);
            gbc.gridx = 1;
            gbc.gridy = 2;
            firstPanel.add(sp, gbc);
            gbc.gridx = 2;
            gbc.gridy = 2;
            firstPanel.add(scroll, gbc);
            gbc.fill = GridBagConstraints.VERTICAL;
            gbc.anchor = GridBagConstraints.FIRST_LINE_START;
            gbc.weightx = 0;
            gbc.weighty = 0;
            gbc.gridheight = 1;
            gbc.gridheight = 1;
            gbc.gridx = 0;
            gbc.gridy = 21;
            JButton fetchButton = new JButton("Fetch");
            fetchButton.setFont(font);
            fetchButton.setSize(new Dimension(175, 35));
            firstPanel.add(fetchButton, gbc);
            fetchButton.addActionListener(new ActionListener() {
            gbc.gridx = 0;
            gbc.gridy = 22;
            JLabel nehOR = new JLabel("- OR -");
            nehOR.setFont(font);
            firstPanel.add(nehOR, gbc);
            JButton searchButton = new JButton("Fetch by Title");
            searchButton.setToolTipText("Enter title search criteria");
            searchButton.setFont(font);
            gbc.gridheight = 1;
            gbc.gridx = 0;
            gbc.gridy = 23;
            gbc.anchor = GridBagConstraints.LINE_START;
            JLabel nehOpenBySVNIdLabel = new JLabel("Open by ID");
            nehOpenBySVNIdLabel.setFont(font);
            firstPanel.add(nehOpenBySVNIdLabel, gbc);
            gbc.gridheight = 1;
            gbc.gridx = 1;
            gbc.gridy = 23;
            gbc.anchor = GridBagConstraints.WEST;
            findTextField.setColumns(20);
            firstPanel.add(findTextField, gbc);
            gbc.gridheight = 1;
            gbc.gridx = 2;
            gbc.gridy = 23;
            gbc.anchor = GridBagConstraints.WEST;
            JButton openButton = new JButton("Open");
            openButton.setFont(font);
            openButton.setPreferredSize(searchButton.getPreferredSize());
            System.out.println("Button Size" + openButton.getSize());
            firstPanel.add(openButton, gbc);
            openButton.addActionListener(new ActionListener() {
            gbc.gridheight = 1;
            gbc.gridx = 0;
            gbc.gridy = 24;
            gbc.anchor = GridBagConstraints.LINE_START;
            JLabel searchLabel =
                new JLabel("Search the repository by title word(s)");
            searchLabel.setToolTipText("Enter title search criteria");
            searchLabel.setFont(font);
            firstPanel.add(searchLabel, gbc);
            gbc.gridheight = 1;
            gbc.gridx = 1;
            gbc.gridy = 24;
            gbc.anchor = GridBagConstraints.WEST;
            searchTextField = new JTextField("", 20);
            searchTextField.setColumns(20);
            searchTextField.setEditable(true);
            firstPanel.add(searchTextField, gbc);
            gbc.gridheight = 1;
            gbc.gridx = 2;
            gbc.gridy = 24;
            gbc.anchor = GridBagConstraints.WEST;
            firstPanel.add(searchButton, gbc);
            searchButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
            gbc.anchor = GridBagConstraints.FIRST_LINE_START;
            gbc.gridwidth = 4;
            gbc.gridx = 0;
            gbc.gridy = 28;
            gbc.fill = GridBagConstraints.HORIZONTAL;
            tableScrollPane.setPreferredSize(new Dimension(200, 200));
            firstPanel.add(tableScrollPane, gbc);
            gbc.fill = GridBagConstraints.NONE;
            gbc.gridheight = 1;
            JRadioButton reviewButton = new JRadioButton("Review");
            reviewButton.setFont(font);
            reviewButton.setMnemonic(KeyEvent.VK_B);
            reviewButton.setSelected(true);
            JRadioButton testButton = new JRadioButton("Test");
            testButton.setFont(font);
            testButton.setMnemonic(KeyEvent.VK_B);
            JRadioButton prodButton = new JRadioButton("Production");
            prodButton.setFont(font);
            prodButton.setMnemonic(KeyEvent.VK_B);
            nehGroup.add(reviewButton);
            nehGroup.add(testButton);
            nehGroup.add(prodButton);
            gbc.gridx = 2;
            gbc.gridy = 30;
            firstPanel.add(reviewButton, gbc);
            gbc.gridx = 2;
            gbc.gridy = 31;
            firstPanel.add(testButton, gbc);
            gbc.gridx = 2;
            gbc.gridy = 32;
            firstPanel.add(prodButton, gbc);
            gbc.gridx = 2;
            gbc.gridy = 33;
            JButton printButton = new JButton("Print");
            printButton.setFont(font);
            firstPanel.add(printButton, gbc);
            printButton.addActionListener(new ActionListener() {
            gbc.fill = GridBagConstraints.NORTHEAST;
            gbc.gridx = 0;
            gbc.gridy = 30;
            JButton openTopicsButton = new JButton("Open Selection");
            openTopicsButton.setFont(font);
            firstPanel.add(openTopicsButton, gbc);
            openTopicsButton.addActionListener(new ActionListener() {
            gbc.gridx = 0;
            gbc.gridy = 32;
            JButton mapLinks = new JButton("Insert");
            mapLinks.setFont(font);
            JButton relatedLinks = new JButton("Insert Links");
            relatedLinks.setFont(font);
            relatedLinks.setPreferredSize(mapLinks.getPreferredSize());
            firstPanel.add(relatedLinks, gbc);
            relatedLinks.addActionListener(new ActionListener() {
            gbc.gridx = 0;
            gbc.gridy = 33;
            firstPanel.add(mapLinks, gbc);
            mapLinks.addActionListener(new ActionListener() {
            tabbedPane.add("NEH", firstPanel);
            //NEH Tabbed Pane
            tabbedPane.add("EHDD", secondPanel);
            add(tabbedPane);
            tabbedPane.addChangeListener(new ChangeListener() {
        public static void main(String[] args) throws SQLException,
                                                      ParserConfigurationException,
                                                      SAXException, IOException,
                                                      XPathExpressionException {
            SOS sos = new SOS();
            sos.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            sos.setTitle("SOS");
            sos.setSize(760, 680);
            sos.setVisible(true);
            sos.toFront();
            sos.setMinimumSize(new Dimension(760, 680));
    Thanks,
    MSR.

    I never use GridBagLayout.
    I suggest that you change to combinations of BorderLayout, GridLayout (without "Bag"!) and GroupLayout.
    bye
    TPD

  • URGENT!! How to avoid paint all the components?

    In the following code sample, when you move the mouse, the top-level JPanel (with the name p) repaints itself with a red circle. The strange thing is that also the 4 JButtons repaint themselves!! (this is shown by the System.out). If the container of the 4 JButtons and the "p" had too many components, then the repaint of "p" gets very slow!! If i delete the line "super.paintComponent(g)" in the class "Myb", then the JButtons do not show correctly.
    How can i avoid that the 4 JButtons do not repaint themselves all the time?
    import javax.swing.*;
    import java.awt.*;
    public class Fr extends javax.swing.JFrame {
        private javax.swing.JPanel p;
        private Ap ap1;
        private Myb b4;
        private Myb b3;
        private Myb b2;
        private Myb b1;
        public Fr() {
            p = new javax.swing.JPanel();
            ap1 = new Ap();
            b1 = new Myb();
            b2 = new Myb();
            b3 = new Myb();
            b4 = new Myb();
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    System.exit(0);
            p.setLayout(null);
            p.setBackground(new java.awt.Color(153, 153, 0));
            p.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
                public void mouseMoved(java.awt.event.MouseEvent evt) {
                    ap1.repaintWith(SwingUtilities.convertPoint(p,evt.getPoint(),ap1));
            ap1.setFont(new java.awt.Font("Dialog", 0, 11));
            ap1.setOpaque(false);
            p.add(ap1);
            ap1.setBounds(-10, -40, 500, 500);
            b1.setText("b1");
            p.add(b1);
            b1.setBounds(0, 0, 150, 150);
            b2.setText("b2");
            p.add(b2);
            b2.setBounds(0, 150, 150, 150);
            b3.setText("b3");
            p.add(b3);
            b3.setBounds(150, 0, 150, 150);
            b4.setText("b4");
            p.add(b4);
            b4.setBounds(150, 150, 150, 150);
            getContentPane().add(p, java.awt.BorderLayout.CENTER);
            pack();
            java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
            setSize(new java.awt.Dimension(500, 500));
            setLocation((screenSize.width-500)/2,(screenSize.height-500)/2);
        public static void main(String args[]) {
            new Fr().show();
    class Ap extends JPanel
        private Point p;
        public Ap(){
            super();
            p = new Point(10,10);
        public void repaintWith(Point p){
            this.p = p;
            repaint();
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.red);
            g.fillOval(p.x-5,p.y-5,10,10);
    class Myb extends JButton
        int x = 0;
        public Myb() {
            super();
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            System.out.println(getText()+"-->"+(x++));
    }

    I did that, but still nothing!
    I inserted these lines!
            JPanel subp = new javax.swing.JPanel();
            subp.setBorder(new javax.swing.border.LineBorder(Color.blue, 2));
            subp.setOpaque(false);
            p.add(subp);
            subp.setBounds(200, 0, 200, 200);
            ap1.setOpaque(false);
            subp.add(ap1);
            ap1.setBounds(200, 0, 200, 200);

  • How do I auto-update the date (in a footer)  in Pages 5.2.2 ?

    I have inserted the date into the footer of my document. I am running Pages 5.2.2 on Mavericks.
    I would like the date to auto-update to today's date.  I found a post from 2013 ( How to auto-update Time and Date?), but my version of pages doesn't work as described.  The only choice is update to today's date as a button I can manually click, but there doesn't seem to be an auto-update check box anymore.  Is there a new way to do it or has the feature been removed?

    Hi Cindy,
    Click once in the Footer.
    Menu > Insert > Date & Time.
    Double click to select the Date & Time in the Footer and choose a Date & Time format
    And there is also the Set to Today button.
    Waiting several minutes (just enough time for a cup of coffee) and then clicking the Set to Today button, the time changes from 9:53 pm to 9:59 pm.
    I can't wait until tomorrow to see if the date changes, but I think it will .
    Another way (clunky) is to insert a single-cell table somewhere in your document and type =now and format to your liking.
    As far as I know, Date & Time will update after you Save and then Open your document. Please call back after you test.
    Regards,
    Ian.

  • How to avoid round of the value in mapping

    Hi!
    I am trying to pass in mapping value 999999.999, but   XI rounds it to 1000000.
    How can I avoid this?
    I tried to change types of field in Data Type: string, float, same problem.
    Any help appreciated.

    Hi,
    try using this function in message mapping
    FormatNum     
    Converts I according to a pattern that you define using the function properties. The possible patterns are the same as in the Java class java.text.DecimalFormat.
    Regards,
    Kai

  • How to avoid border for the dropdownbox in a tableview

    Hi all,
            I have a requirement  to disable the border of  the dropdownlistbox which is to be displayed in a column of the tableview.(as it is in standard pcui ).
      My problem is that ,there is a comments column in my tableview which is wrapped.So  when I enter a long string in this column the column conatining the dropdowbox  is also expanding showing two borders ,one of the dropdownbox and the other of the tableview cell .Therefore I would like to display the dropdownbox without an outline.
       How can I achieve this??
    Regards,
    Chandana.

    Hi ,
           Here is my code:-
    In Iterator RENDER_CELL_START:-
    WHEN 'CATEGORY'.
    DATA: I_PHAS1_REF TYPE REF TO DATA.
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA : l_event TYPE REF TO CL_HTMLB_EVENT,
           lv_value type string.
    GET REFERENCE OF me->it_category INTO I_PHAS1_REF.
    ** To Display Dropdown List in Tableview
    field-symbols: <cat> type any.
      data: wa_cat type zaett.
      assign p_row_data_ref->* to <cat>.
      move <cat> to wa_cat.
    p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
    ID = P_CELL_ID
    selection  = wa_cat-category
    TABLE = I_PHAS1_REF
    NAMEOFKEYCOLUMN = 'CATEGORY'
    NAMEOFVALUECOLUMN = 'CATEGORY'
    width             = 'auto'
    BACKGROUNDCOLOR = 'X'
    In the layout:-
    <htmlb:tableView       id               = "tv"
                           width            = "500"
                           headerVisible    = "false"
                           design           = "alternating"
                           visibleRowCount  = "15"
                           fillUpEmptyRows  = "true"
                           selectionMode    = "multilineedit"
                           selectedRowIndex = "<%= row_index %>"
                           selectedRowIndexTable = "<%= selectedRowIndexTable%>"
                           onRowSelection   = "MyEventRowSelection"
                           showNoMatchText  = "true"
                           filter           = "server"
                           sort             = "server"
                           onHeaderClick    = "MyEventHeaderClick"
                           table            = "<%= it_aett %>"
                           iterator         = "<%= my_iterator %>" >
          </htmlb:tableView>
    I would like to know if there is any attribute which is used to disable the outline for the dropdownbox.
    Regards,
    Chandana

  • How can i Auto Size the Column width in RDLC Report

    Hi Friend's,
    I have created Windows application with RDLC Report. I am binding(Generating) dynamic columns and data's in RDLC Report Using Matrix control, I need to make Auto size of Column width for each Column in
    Matrix of RDLC report. So Can any one suggest me to make the Auto Size of Column Width in RDLC.
    Thanks in Advance,
    Mohan G

    Hi Mohan,
    In Reporting Services, the column width/height is hard-coded, hence, we cannot set the column width/height dynamically or based on an expression. So is the report size.
    In addition, since it is a RDLC report, we need a ReportViewer control to display this report within a custom application. If you need to change the size of the whole report, we can set the AsyncRendering property of the ReportViewer control to false, and
    set the SizeToReportContent property to true.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for