Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:28:51+00:00 2026-05-27T00:28:51+00:00

I have a Nebula Grid (org.eclipse.nebula.widgets.grid.Grid) control in my view in Eclipse RCP. I

  • 0

I have a Nebula Grid (org.eclipse.nebula.widgets.grid.Grid) control in my view in Eclipse RCP. I would to make the row header of this grid visible so that, at runtime it displays row numbers like following photo:

enter image description here

Now, my requirement is that I want to display a text/char on the row header column, like other column headers (e.g. Full Name, Designation, etc). How can I achieve this on the Nebula Grid? Or, is it not possible by this Nebula Grid control? What could be my alternative?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:28:52+00:00Added an answer on May 27, 2026 at 12:28 am

    I finally achieved the required functionality in nebulla Grid by implementing the method :
    public void paint(GC paramGC, Object paramObject) {implementaion code }
    inside interface :
    setTopLeftRenderer(new IRenderer() { //interface methods}
    as follows :

    grdTable.setTopLeftRenderer(new IRenderer() {
        @Override
        public void setSize(int paramInt1, int paramInt2) {
        // TODO Auto-generated method stub  
        }
    
        @Override
        public void setSize(Point paramPoint) {
    
        // TODO Auto-generated method stub
    
        }           
        @Override
        public void setSelected(boolean paramBoolean) {
        // TODO Auto-generated method stub
        }
    
        @Override
        public void setMouseDown(boolean paramBoolean) {
        // TODO Auto-generated method stub      
        }
    
        @Override
        public void setLocation(int paramInt1, int paramInt2) {
        // TODO Auto-generated method stub              
        }
    
        @Override
        public void setLocation(Point paramPoint) {
        // TODO Auto-generated method stub                  
        }
    
        @Override
        public void setHover(boolean paramBoolean) {
        // TODO Auto-generated method stub              
        }
    
        @Override
        public void setFocus(boolean paramBoolean) {
        // TODO Auto-generated method stub              
        }
    
        @Override
        public void setExpanded(boolean paramBoolean) {
        // TODO Auto-generated method stub              
        }
    
        @Override
        public void setDisplay(Display paramDisplay) {
        // TODO Auto-generated method stub              
        }
    
        @Override
        public void setBounds(int paramInt1, int paramInt2, int paramInt3,
                        int paramInt4) {
        // TODO Auto-generated method stub                  
        }
    
        @Override
        public void setBounds(Rectangle paramRectangle) {
        // TODO Auto-generated method stub          
        }
    
        @Override
        public void paint(GC paramGC, Object paramObject) {
        // TODO Auto-generated method stub
        //paramGC.setAntialias(1);
        paramGC.setBackground(SWTResourceManager.getColor(240, 240, 240));
        Rectangle rect=new Rectangle(0, 0, 20, 2*(grdTable.getGroupHeaderHeight()));
            paramGC.fillRectangle(rect);
            //making foreground color of the Rectangle to be of text in ColumnHeaders   
        paramGC.setForeground(SWTResourceManager.getColor(0, 0, 0));
            //drawing appropriate text on the topLeftCorner of Grid
        paramGC.drawText("#",5,10,false);               
        }
    
        @Override
        public Point computeSize(GC paramGC, int paramInt1, int paramInt2,
                        Object paramObject) {
        // TODO Auto-generated method stub
    
        return null;
        }
    });
    

    Where, grdTable is the Grid being used in the view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used a nebula Grid ( org.eclipse.nebula.widgets.grid.Grid ) in my view. I have
My question is that I have a SWT Table in Eclipse RCP project. I
Have you managed to get Aptana Studio debugging to work? I tried following this,
Have converted devise new session from erb to Haml but doens't work, this is
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
Have some dates in my local Oracle 11g database that are in this format:
I have two classes, one of them is a configuration class. Inside of this
Have a fun issue with sharepoint calendar view filtering. That code works fine: SPSecurity.RunWithElevatedPrivileges(delegate()
Have a look at this code: #include <iostream> using namespace std; int main() {
Have this method call: -> simpleJdbcTemplate.queryForInt(SQL,null); -> queryForInt() method in the springs SimpleJdbcTemplate throws

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.