JTable grid line not appearing

http://www.instaprint.com/images/helptable.gif
I've tried...
making the total width of the columns smaller than the width of the table,
making the width of the table smaller than the preferred width of the JScrollPane,
jobTable.getColumnModel().getColumn(0).setPreferredWidth(65);
jobTable.getColumnModel().getColumn(1).setPreferredWidth(75);
jobTable.getColumnModel().getColumn(2).setPreferredWidth(70);
jobTable.getColumnModel().getColumn(3).setPreferredWidth(60);
(Total Width = 270)
scrollPane = new JScrollPane(jobTable);
scrollPane.setPreferredSize(new Dimension(270, 191));
scrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));
constraints.insets = new Insets(0, 0, 0, 0);
constraints.gridwidth = GridBagConstraints.REMAINDER;
gridbag.setConstraints(scrollPane, constraints);
displayPanel.add(scrollPane);
I'm using GridBagLayout, any ideas??

thanks a lot guys
i solved that using a post in the forums.
i just had to write
super..setBorderPainted(true);
and it worked
thanks

Similar Messages

  • Grid Lines not appearing in Query

    Hi all,
    I have a query in BI 7.0.  The problem is the Grid lines & the Formats are not appearing in the query i.e the row & column lines are not appearing.  These were there before 2 weeks but now something has happened and it got changed.  So, if i create a workbook from this query, the workbook also reflect the same format.  Even if i make the format changes through excel functions, i could only save it as a workbook and it wont reflect in the query.
    We are not able to identify exactly why this problem came.  It doesnt have anything to do with the Package or patch.  This problem occurs only for one query & all the other query formats are working fine.  I compared the error free queries with the problem query but everything seems to be the same.
    Please help me in solving this problem.
    Thanks,
    Murali

    Hi Everyone,
    The issue is solved.  The option "Adjust Formatting after Refreshing" in the Query Properties was unchecked.  I checked that & the problem is solved.
    Thanks,
    Murali

  • Item billing plan lines not appearing in billing due list ...

    Hello Team ,
    I have one question on service contract billing plan. Contract has status released.
    I have one contract which has header billing plan that is applicable at line item also.
    1. At line item level billing plan two items are due for billing but in billing due list this line item does not appear. Some of the lines in Item billing plan are already billed.
    Also at item billing plan there is no check (tick mark) for Header Billing Plan.
    Can some one suggest what are the possible checks for item billing plan not appearing in billing due list.
    Thanks ,
    Nitn Patki

    Hi Nitin,
    Check the status of the line items.
    Regards
    Narayana

  • Spreadsheet component - bottom grid line not displaying in swf file

    Hi,
    I'm having an issue with the spreadsheet component. I'm using the "Ignore blank cells in Values" option on the behavior tab. This works fine. The problem I'm having is the bottom grid line in the spreadsheet table is not displaying in the swf file. The bottom grid line displays correctly in Preview mode....but is not displaying in the swf file. Anyone have any ideas on why?
    Thanks

    I'm not sure if I've interpreted your response correctly.  Our entire dashboard app is built on the swf files being called from the URL buttons.  We are not using HTML files.  Are you saying that if I do a file export to HTML that the swf file generated from this will display the bottom grid lines?
    I noticed that the spreadsheet component grid lines display correctly in the swf when not checking the ignore blank cells option in the behavior tab.
    So what would be our options here.....either uncheck the display grid lines for the spreadsheet component to not display the grid lines at all, or do not use the ignore blank cells option in the behavior tab to display a fixed number of rows each time?
    Thanks for the response, Matt.

  • JTable Grid Lines became very light when changed to JGoodies L&f

    After changing to the JGoodies Look and Feel, my Table Grid Lines (Row and Column Lines) look very light. They are hardly visible. The former orinignal black grid lines looks light as gray. Is there a way to change the color of Grid lines using the Table Renderers or do I need to do anywhere else
    Can you help me in that. I checked through the API but did not find a function to set so..
    Update to my Question_
    I have placed the below statement in my Overridden getTableCellRendererComponent method as the first statement
    table.setGridColor(Color.red);
    The probelm is everytime I switch windows (between my application and any other program), my application is almost dying (GUI gets completely screwed) until I keep clicking on the Application and then it gets back
    Edited by: hemanthjava on Nov 10, 2008 5:25 AM
    Edited by: hemanthjava on Nov 10, 2008 5:27 AM

    I am not expert in these, but please check out the following things and see whether it would solve your issue. (All these changes can be easily rolled back in case I'm wrong :). So make note of what you do)
    As per your httpd.conf, you have chosen an automatic configuration of Apache by OWCI installer itself. What it does is create an imageserver.conf file in a separate directory and these settings will be included in your httpd.conf as you can see in the first line: Include "C:/bea/alui/plumtreeconf/".
    If you check the imageserver.conf in that location, you would find a line like: Alias /imageserver/ "C:/bea/alui/ptimages/imageserver/". This aliases the original path "C:/bea/alui/ptimages/imageserver/" to /imageserver"
    To confirm whether this is done right, check the following:
    1. Acces 'http://<server ip / server name / localhost >/' from your browser
    This should display the Apache home page (as per your httpd.conf, it uses the default port 80; so no port number required)
    2. Access 'http://<server ip>/imageserver/' from your browser
    This should display the directory structure (if its not disabled) inside your 'C:/bea/alui/ptimages/imageserver/' folder. Also confirm that all the subfolders are accessible.
    3. If all the above is right, it means that your imageserver settings are right. Please check your portalconfig.xml for the correct settings: For example, <setting name="HTTPPort"> should be 7001 in your case. If its something else, change it and restart Weblogic for the settings to take effect.
    Hope this helps.

  • Graduated Filter "lines" not appearing?!

    Hi
    Happily using latest Lr 3.3 but just noticed in the last few days that when I use the "graduated filter" function, the three lines do not appear onscreen, but after dragging the cursor across an image, and editing say exposure the image does alter. So the function is working but without the lines.
    I've done all the obvious rebooting stuff, shut down other progs etc but no joy.
    Anyone else had this, or know how to get the lines back?!
    PS:
    any ideas how to report this bug to Adobe?
    thanks in advance
    Edward

    Ha! that fixes it
    many thanks Jeff, I'll have to watch for this!

  • JTable Grid Lines

    How can I make the Grid Lines (Vertical and Horizontal) of the JTable extend to the bottom even without data? Any suggestion is highly appreciated. Thank you.

    Well, you can add some custom painting yourself. Here is a simple example that might get you started:
    import java.awt.*;
    import javax.swing.*;
    public class TableLines extends JFrame
         JTable table;
         public TableLines()
              table = new JTable(10, 5)
                   public void paintComponent(Graphics g)
                        super.paintComponent(g);
                        g.setColor( Color.RED );
                        int y = getRowHeight(0) - 1;
                        g.drawLine(0, y, getSize().width, y);
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
         public static void main(String[] args)
              TableLines frame = new TableLines();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • TableView separator line not appearing

    Hello,
    In my xib I have a TableView, I implement a simple custom cell to change the default cells. But when I run the app, the cells appear withou the separators line.
    The lines appear in grouped style, but not in plain style.
    Someone has this problem?
    I'm using the xcode 4.1
    I have another app, that I use custom cell, and it's OK.
    thanks

    Hi,
    Check whether your character settings are fine? I mean to say there should be enough spacing between 2 words to display the vertical line. Also your can sterch your window size to accomodate vertical lines.
    Regards,
    Vinit
    Edited by: vinit005 on Feb 22, 2011 12:03 PM

  • Dynamic Subject Line not appearing in PO mail

    Hi Experts,
    In tcode ME28 when i get the list of POs to be released , I click on the release possible icon against the PO number. On clicking of this, a mail goes to the vendor of the PO.
    My requirement is to change the subject line of this mail.
    I have done all the required settings in NACE i.e. for this output, in the " Mail title & texts" , I have maintained the text and in the General data tab I have mentioned SAPMM06E as the program & TEXT_SYMBOL_REPLACE as the form routine.
    Also in the Mail tab I have done the same : SAPMM06E as the program & TEXT_SYMBOL_REPLACE as the form routine.
    But i am not able to get this dynamic mail text in the PO mail , instead of this text, the correspodnig PO number comes as the mail text.
    In there anything that I have missed out ?
    Please suggest.
    Thanks in advance  .

    Hey ,
    is there a code written which will is responsible for forming and sending this mail ? If so the you need to look inside this code and instead see where are you setting PO number in subject line. In that part of code  you need to a variable which will hold this dynamic text which you want to send as subject line.
    If you can share that code with me , I can help you further.
    Hope this is helpful.
    Regards,
    Uma Dave

  • How do I get rid of the grid lines that appeared when I opened my picture in Photoshop?

    So I was going to edit a .jpg file in Photoshop and when I went to place it or open it in the software, it showed me this weird set of lines that sort of make a grid. How do I get rid of them since it overlaps with my picture?

    or Ctrl (Cmd) ; to toggle the guides of and on, or Ctrl (Cmd) h to hide (toggle) Guides, Grid, and Marching ants.

  • JTable, column names not appearing!

    I am using the following code:
    Vector columnNames = new Vector();
            Vector data = new Vector();
            try
                //  Connect to the Database
                Common.Data.DataAccesser da = new Common.Data.DataAccesser();
                Connection connection = da.getConnection();
                //  Read data from a table
                String sql = "Select * from schedule1";
                Statement stmt = connection.createStatement();
                ResultSet rs = stmt.executeQuery( sql );
                ResultSetMetaData md = rs.getMetaData();
                int columns = md.getColumnCount();
                //  Get column names
                for (int i = 1; i <= columns; i++)
                    columnNames.addElement( md.getColumnName(i) );
                //  Get row data
                while (rs.next())
                    Vector row = new Vector(columns);
                    for (int i = 1; i <= columns; i++)
                        row.addElement( rs.getObject(i) );
                    data.addElement( row );
                rs.close();
                stmt.close();
            catch(Exception e)
                System.out.println( e );
            //  Create table with database data
            JTable table = new JTable(data, columnNames);
            jPanel2.setLayout(new java.awt.BorderLayout());
            jPanel2.add(table, BorderLayout.CENTER);I know its a bit messy, wat im tryin to do is add the table to the panel. the rows are showing perfectly but the column names do not show! Can anyone help?

    1) Please ask Swing questions in the Swing forum.
    2) Don't forget to specifically make the table header display. You do this by adding the table header to the jpanel in the borderlayout NORTH position, and you get the table header by calling getTableHeader. Have a look here for instance:
    http://forum.java.sun.com/thread.jspa?threadID=5235339&tstart=0

  • Table lines not appearing in design view

    im using dreamweaver 4 and usualy you can see all the tables
    youve created in design view but i dont know if iv changed a
    setting by accident but now the main outside table is showing but
    every other one is invisible. all the content within the tables is
    appearing but not the tables. i split the cell of a table and have
    to roll the mouse around to try find where the divide is so i can
    drag it cos i cant see anything.

    pellio wrote:
    > im using dreamweaver 4 and usualy you can see all the
    tables youve created in
    > design view but i dont know if iv changed a setting by
    accident but now the
    > main outside table is showing but every other one is
    invisible. all the content
    > within the tables is appearing but not the tables. i
    split the cell of a table
    > and have to roll the mouse around to try find where the
    divide is so i can drag
    > it cos i cant see anything.
    >
    under main menu:
    view > visual aids > ...
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Internal Requisition Line not appears in receipts form

    Hi,
    I have created an internal req. with 3 lines. After that the internal requisition was approved. Then one of the lines was cancelled (line 1). After that the ohter 2 lines (line 2 and 3) where received in Receipts form.
    As I want to receive also Line 1, I have changed by data fix the CANCEL_FLAG from 'Y' to 'N'. So the problem is that when I go to receipts form, this line (line 1) did no appears.
    What happend? Should i have to run a process?
    Thanks,
    Facudno.

    Yes. I update the database table! Is there any other field that I nedd to update by database?

  • Lines not appearing in SVG Line Graph

    Hi ,
    I have created a chart region which is of tyoe SVG ( Line) .
    My issue is that for some cases I can only see the Marker Style at the correct position but I cannot see a line joining the dots.
    What could I be doign wrong here ?
    Appreciate any response in this regard .
    Also I notice this strange error in IE - Path data Command 'L' bad or missing parameter.
    My chart query is like this :
    select null,col1, col2
    from table1
    where id = :P8_ID and type = 1Thanks in advance,
    Dippy

    Hi Everyone,
    The issue is solved.  The option "Adjust Formatting after Refreshing" in the Query Properties was unchecked.  I checked that & the problem is solved.
    Thanks,
    Murali

  • When I access the Scrabble game, the whole grid does not appear.

    Changing the screen resolution does not help. This is a new problem, as I have been able to play Scrabble on the Pogo site
    for years.

    If you restart and hold down the Option key you should get a grey screen with the macintosh HD and recovery HD images...you then have to click on the recovery HD image, then click the arrow under the image.
    Or, resstart and hold the Command and R keys until you are restarted and the display is the desktop of the recovery HD.

Maybe you are looking for

  • Weird text problem in Internet Explorer

    I have a totally puzzling issue with my text in my website. The problem is that it looks fine when the site is previewed in Firefox, Google Chrome or Safari but when previewed in Internet Explorer for some unknown reason some of the text displays inc

  • Cannot restart mac book as safari will not shut down

    I am unable to restart my Macbook as Safari refuses to shut down. The Quit Safari is not highlighted. The problem began when I tried to update safari software.I am running system 10.7.4. Please help Thanks

  • Error getting attribute  on MBean

    After deploying EJB jar file I modified an EJB to add a CMP field. I deployed it again and tested it. It works fine. However, when I deployed I am getting a bunch of error. The stack trace is pasted here. Any ideas on resolving this. I am using WL 6.

  • Firefox shuts my computer down a few minutes after starting it.

    It's real simple for anybody but people at Mozilla. MY COMPUTER SHUTS DOWN a few minute after starting FireFox. The Firefox website is broken, and nobody pays attention to anything. In plain english, everything Mozilla bites. Got it now? Not likely..

  • WRT350N Storage problem

    Using WRT350N with Firmware 1.03.2. I can't detect any USB storage device attached to the router. I have tried numerous USB Storage devices and numerous file systems (including  FAT32), but I can not get the router to recognize these drives. the Mass