Linux - Nimbus LookAndFeel: Table grid lines do not come

I use in my java application NimBusLookAndFeel. I tried to show grid lines in the table.

Following the code works perfectly fine on windows but not on Linux (table grid lines don't appear under linux)

UIManager.setLookAndFeel ("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
UIManager.put ("Table.showGrid", true);
UIManager.put ("Table.intercellSpacing", New Dimension (1,1));

Following are details of java version on linux

Java version "1.6.0_12" Java (TM) SE Runtime Environment (build 1.6.0_12 - b04) Java hotspot Server VM (build 11.2 - b01, mixed mode)

I also tried on JDK 1.6 update 30, but in vain

It takes overrive after Nimbus UIDefaults http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html

try {// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if (info.getName().equals("Nimbus")) {
                    UIManager.setLookAndFeel(info.getClassName());
                    UIDefaults defaults = UIManager.getLookAndFeelDefaults();
                    defaults.put("Table.gridColor", new Color (214,217,223));
                    defaults.put("Table.disabled", false);
                    defaults.put("Table.showGrid", true);
                    defaults.put("Table.intercellSpacing", new Dimension(1, 1));
                    break;
                }
            }
        } catch (Exception e) {
            //e.printStackTrace();
        }

Tags: Java

Similar Questions

  • SelectionListener ADF table fault line did not

    Hi all

    I came across this well-known problem:

    SelectionListener not firing when only 1 result of searching in a table

    SelectionListener ADF table question

    Listener First Row af selection problem: table in ADF 11 g | _outwardBound

    Basically the selectionListener on the table of the ADF is not triggered for the selected standard line, or if the table has only one line, when you filter a column and the result returns only a single line or even when you turn off the filters and it shows you once again all the lines, marking the first such as selected.

    To summarize, the selectionListener is launched when the user clicks on a different line, but not from the default (even if the user clicks on it on purpose).

    I know that there are a few workarrounds, but who may not be suitable for the use of each case on these old threads.

    I think that, given that the line is selected (does'nt matter whether or not it is by default), the developers expect the listener to be pulled in all cases and that this behavior is a bug.

    My question is, given that this problem is still happening in jdev 12.1.3, if there are plans to fix this in future versions.

    Thank you.

    We cannot answer that. To get a response, you must file an SR with support.oracle.com and seek support for a date it a fix.

    Timo

  • How to create table selectable line or not based on the value of the line

    Hello.

    JDeveloper 11.1.1.2

    Is it possible to make a selectable table row or not based on a value in the line.

    That is to say. lets say that the row contains a Boolean LOCKED = TRUE.
    This line should not be selectable.

    A line whose value LOCKED = FALSE should be selectable.

    / Erik

    Erik,

    No particular reason to disable a selection of lines for a particular line? If I'm an end user, I would be clicking on the same line of thought again and again my mouse does not ;) (call me dumb :)). How do you differentiate this line (using inlineStyle / styleClass) based on the value of line? In addition, you can disable the other buttons when a row with a particular value is selected (so that the user knows that the selected line is not treatable).

    Arun-

  • Line does not come after each row of the list

    Hello

    I show a list in my current application. In the list, I paint a line after each line. Just a line of string, I add in each line. Now when I'm checking the list, on some devices, lines are coming. As in Bold 9790, after each line, a line is added. But in the Torch 9810 and curved 9320, line is not there. I don't get why this different behavior for different devices.

    Can someone please help.

    Here is my code:

    public class ListCallBack implements ListFieldCallback{
    
            public void drawListRow(ListField listField, Graphics graphics, int index,
                    int y, int width) {
    
                String text = "xxxxxxx";
                graphics.setFont(FONT_FAMILY_1_SF_AS_08);
                graphics.drawText(text, 10, y, DrawStyle.ELLIPSIS, width);
    
                if (index != 0) {
                    graphics.setColor(Color.BLACK);
                    graphics.drawLine(0, y-12, width, y-12);
                }
            }
    
            public Object get(ListField listField, int index) {
                // TODO Auto-generated method stub
                return mAccounts[index];
            }
    
            public int getPreferredWidth(ListField listField) {
                // TODO Auto-generated method stub
                return screenWidth;
            }
    
            public int getPreferredHeight() {
                return getContentHeight();
            }
    
            public int indexOfList(ListField listField, String prefix, int start) {
                // TODO Auto-generated method stub
                return listField.getSelectedIndex();
            }
    
            }
    }
    

    Thank you...

    The best result I wanted to say, variable height from station to station. So currently I use the line height and made changes accordingly.

    Here is my Code:

     Font f = FONT_FAMILY_1_SF_AS_08;
                graphics.setFont(f);
                int h = f.getHeight();
                int height = (listField.getRowHeight() - h)/2 ;
                y += height;
                graphics.drawText(text, 10, y, DrawStyle.ELLIPSIS, width);
                if (index != 0) {
                    graphics.setColor(Color.BLACK);
                    graphics.drawLine(0, y - height + 1 , width, y - height + 1);
                }
    

    It worked properly. Thanks a lot Peter and Simon.

  • ADF Table - current line does not prepare the first time.

    version 12.1.3

    I try to display data from a rest service as ADF table (select read-only, a single line). I added the edit on the last column button, so each line has its own button change (it is a requirement). By clicking on edit takes you to the next page to change the selected line in the form layout.

    The question that I am running is, when first loading of the page and display the table and if I select a line any except first and click on 'Edit', it still gives me the first row. It works as expected when I click on other lines in a subsequent attempt.

    How can I solve this problem?

    Thank you very much.

    Found the fix. I have just the property "immediate" of the button to true.

  • Display grid lines

    I a2300 Powershot black and just can't get to the view menu which turns on the grid lines. "" I display only starts by "display" on top. This is a really basic question, but it left me speechless. Could someone help me with a very simple explanation... Thank you...

    Hi Woodmaster100,

    According to the manual, the grid lines are not available in Auto mode. If you go into the P mode, you should be able to access the grid lines option in the menu. It will be towards the end of the list.

    I hope that answers your qauestion.

    Smack53

  • In Illustrator grid lines

    What determines the point of origin of the grid in Illustrator?

    I know that I can control the origin of sovereigns, but when I change it, the grid lines do not change, which is quite annoying. I also know that I can change the color and the major and minor intervals in the grid.

    But how do I change the origin?

    Perplexed... Any advice would be really appreciated!

    I know that I can control the origin of sovereigns, but when I change it, the grid lines do not change, which is quite annoying.

    Depends on what version of Illustrator that you use.

    In recent versions turn on world leaders, then change the origin of leaders in order to position the grid.

  • Remove the view grid lines table Pivot

    Hi people,

    How to remove the view grid lines table Pivot? Any script must be integrated? If Yes, then please give me the details.

    Kind regards

    AJ

    This is how you do it,

    Take each of your lines and measures in the PivotTable, and then select the "Values of Format" option when you click on the menu options for each of the lines and the measures.

    In that set the border color to your "background color" which could be "white" and make sure that the border post has the value 'None '.

    That's your vision of pivot will not have the grid lines more...

    Please indicate if this help

  • Several colors of background on a GOLD-table fill to draw graphical point * behind * the grid lines

    I have some a matter of aesthetics.

    I wrote a program that displays data for binary files. These binaries have blocks of data, an hour or two. Each piece is a playback window, and there are a handful of reading windows per day.

    The data view is in effect, what I'm working on now is a more intuitive way to choose what data should be displayed.

    My goal is to have a graph of waveform with the X axis represents a day full (0 - hr 24 hr) and is indicated on the chart what time windows are available for review, that is, data have been collected. The background of a "collected" window will be yellow (or another color), while times in the course of which no given is collected will be black. The user will then drag the sliders to select the window of what he or she wants to see the data.

    It was quite easy to achieve by drawing the curve a digital signal (1 for data collected during this period, 0 for no) and point-fill with yellow to zero. My only problem with this solution is that filling point appears on the lines of the grid, that does not look quite right.

    Y at - it an easy way to get the grid to appear at the top of the charts, or is there a way to programmatically set multiple background colors (it could do the same thing)?

    Use the property "draw pictures" and draw your own grid before image.

  • DO NOT PRINT THE GRID LINES

    Tried to print an empty grid of 9 Suduku.   I have the test to white in DOC format in my computer.  All lines of border and large square line 9 print but the grid that make up 81 small blocks of lines do not print.  The lines that print appear as black in the display of files and preview.  The lines of the line are 81 small blocks appear more gray in my print file and preview before printing.  Printed white perfectly before I updated my printer driver and software.  I did not any changes to my file.   I have a printer HP 4260 and Windows 7.  Would appreciate any help on this.

    Jamison,

    After reading your comments again, I got some question weather I tried actually printing in grayscale.

    I followed the instructions from HP to do.  One would believe you, I had a good impression.  Not sure what happened at the facility in grayscale I have to had used before, but in some way it changed.  But he's back and I'm back in business.

    Thanks again for your suggestions.

    Frank J

  • Drag N Drop table lines do not move a table to another Table

    Hello

    I use 11.1.7 to develop the drag N drop rows in one table to another

    1. I create a table in the schema hr as a student (sName, brands, sId, grade) & inserting values.

    2. I create EO & three your based on Student table... only three your from wise rank as (GroupAVO, GroupBVO, GroupCVO)

    3. I create page & panelgridLayout (3 columns, 1 row), I drop these three instances of VO tabular...

    4 drag the component Source and Drop target in these 3 tables...

    Run the page... page contains perfectly with the wise group of 3 tables...

    but when I drag a line a table to another table, lines do not move...

    I check my DB too... changes there too...

    No error and exceptions in my journal...

    What is the problem? Can someone help me?

    See also - Ashish Awasthi (Jdev/ADF) Blog: adding Drag and Drop functionality for collections in the fragments of the page to create insert

    Thank you

  • How elimate the grid lines in a single row of a table?

    I have a table that has 5 lines.  The table has a border of 1, so there are the grid lines.  How can I eliminate the horizontal border between the 1st row of row 2?

    There is never vertical grids.  You want to keep them?  Then, you need to use a slightly different approach.

    Consider this CSS-

    table {}

    border-collapse: collapse;

    border: 1px solid black;

    }

    TD {}

    border: 1px solid black;

    }

    TR. Top td {}

    border-bottom: none;

    }

    TR. Bottom td {}

    border-top: none;

    }

  • I need help in creating one (Table / Grid) using Flash Builder (not a datagrid)

    I'm looking for a way to create a dynamic table / grid somewhat like a sheet or spread html table. but I want to create all the cells via a loop.

    The following diagram was created using php to execute a loop and writing on the cells and the duration for each cell in the grid/table. But I have no idea where to start in flash builder to build something like this.

    Some cells will last 2 to 4 columns as shown in the following diagram.

    grid-table.gif

    Any suggestions on how to create this type of table or grid in Flash Builder?

    I looked through most of the components, but I'm not sure which component to use.

    Help in this would be greatly appreciated.

    Thank you to

    Maurice

    It's ok, I thought about it.

    just by using containers grid Flash builder 4.5

  • Apex 4.2: The button "Add a line" does not not in table form

    Hello

    We have an application migrated from 3.2 to 4.2 Apex

    Afterwards, the 'Add Row' button does not work. When I try to click that, new line is not get added.

    I even tried to delete the tabular form and creates a new array of 4.2 Apex environment itself, but of no use, new line is not get added.

    "Also, is to launch a page fault"Message: 'length' is null or not an object"

    Browsed little of the previous announcement in OTN for this problem and found that by changing the theme, this problem can be solved.

    'Length' is null or not an object for tabular forms V4 error

    Apex 4: the 'Add Row' button doesn't work is not in tabular form

    The user is comfortable with the current theme and does not change the theme.

    Current theme used is "blue-gray - 13.

    Is it by a patch or workaround, we will be able to do the work of button "Add a line" normal.

    Kindly guide me in this issue. Thanks in advance.

    Kind regards

    Shiva

    OK, my dyslexia kicked in.  Modify the report model and correct the field before the lines replacing the #STATIC_REGION_ID # #REGION_STATIC_ID #.

    ***

  • Columns not null showing that nullable in the table grid

    I use 2.1.0.63 sql developer.
    I ran the following in my diagram
      CREATE TABLE EXCLUDE_DATA 
       (OWNER       VARCHAR2(30), 
        TABLE_NAME  VARCHAR2(30), 
           COLUMN_NAME VARCHAR2(30), 
           CONSTRAINT CK_OWNER CHECK (owner IS NOT NULL) ENABLE, 
           CONSTRAINT CK_TABLE_NAME CHECK (table_name IS NOT NULL) ENABLE
       );
     
     COMMENT ON TABLE EXCLUDE_DATA IS 'Tables and Columns to exclude from the column checker';
     COMMENT ON COLUMN EXCLUDE_DATA.OWNER IS 'The schema that contains the table';
     COMMENT ON COLUMN EXCLUDE_DATA.TABLE_NAME IS 'The table name to be excluded from the column checker';
     COMMENT ON COLUMN EXCLUDE_DATA.COLUMN_NAME IS 'The column on the table to be excluded.  If null then the whole table is excluded';
    
      CREATE UNIQUE INDEX UK_EXCLUDE_DATA ON EXCLUDE_DATA (OWNER, TABLE_NAME, COLUMN_NAME);
    When the name of the table is selected, and the tab for the column that is selected in the main window it's showng columns as nullable (see below)
    OWNER     VARCHAR2(30 BYTE)     Yes          1     The schema that contains the table
    TABLE_NAME     VARCHAR2(30 BYTE)     Yes          2     The table name to be excluded from the column checker
    COLUMN_NAME     VARCHAR2(30 BYTE)     Yes          3     The column on the table to be excluded.  If null then the whole table is excluded
    The constraints are there however, it looks like a potential problem with just this window.

    CeeJay

    Adding a not null to a column check constraint does not have the non-nullable column.

    Try instead this statement

    CREATE TABLE EXCLUDE_DATA
    (THE VARCHAR2 (30) IN OWNER NOT NULL,)
    TABLE-NAME VARCHAR2 (30) NOT NULL,
    COLUMN_NAME VARCHAR2 (30)
    );

    COMMENT on TABLE EXCLUDE_DATA IS "Tables and columns to exclude from the audit of the column;
    COMMENT ON THE EXCLUDE_DATA COLUMN. OWNER IS 'of the schema that contains the table.
    COMMENT ON THE EXCLUDE_DATA COLUMN. Table_name IS "the name of table to be excluded from the audit of the column;
    COMMENT ON THE EXCLUDE_DATA COLUMN. Column_name IS ' column on the table to be excluded. If set to null, then the entire table is excluded. "

    CREATE A UNIQUE UK_EXCLUDE_DATA ON EXCLUDE_DATA (OWNER, TABLE_NAME, COLUMN_NAME) INDEX;

    The database AUTOMATICALLY adds check for columns NOT NULL constraints.

    Hope this helps

    Concerning
    Chris

Maybe you are looking for

  • Display the source Safari

    Will display source expose me to a virus, Trojan etc horse if it is used to display the source of a suspicious email?

  • Count of edges within a period

    Hello I'm still fairly new to labview and that I could use help on something, I'm working on. I need to measure two things of an encoder, the RPM, which I can easily do it through the index; and the number of edges on the channel between two pulses o

  • Acer Liquid Jade acting strange

    Hello world I recently did an accidental reset on my liquid Jade, and I started my phone in demo mode. It's really annoying and I tried to delete the video demonstration, or something, but still sayd demo Mode at the bottom left, so I tried to do a H

  • Aspire upgrade RAM E5-575-54E8...

    The Aspire E5-575-54E8 requires a complete disassembly to upgrade the ram or just the removal of the front panel? I looked on youtube but can't find this particular model.

  • Cannot change the host associations groups

    Hello: I'll put up a cluster with two nodes with two Dell servers and a MD3200 with two controllers. Each server has two SAS HBA, each one associated with each of the SAN controllers for redundancy. I stopped with a problem stupid aparently that not