JCombobox Renderer Question

I am trying to use a custom renderer for a jcombobox in order to show combobox items in different font color. I get a DefaultListCellRenderer and update it according to my needs (setting font color). When I run the application, the combobox is populated properly. When I select one of the items (say "Red") from the combobox, the item gets selected, but the after the selection the font color of the item that is selected defaults to black (instead of red here). What should I do so that after selecting the item, the selected item is shown in the appropriated font color as indicated by custom renderer.
Here is the code for the custom renderer.
    private class ColorCmbRenderer implements ListCellRenderer {
        protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
        private final Dimension preferredSize = new Dimension(50, 23);
        public Component getListCellRendererComponent(JList list, Object value,
                                                    int index, boolean isSelected,
                                                    boolean cellHasFocus) {
        JLabel renderer = (JLabel) defaultRenderer.getListCellRendererComponent(list, value, index,
                                                    isSelected, cellHasFocus);
            switch (index) {
                case 0: renderer.setText("Black");
                        renderer.setForeground(Color.BLACK);
                        break;
                case 1: renderer.setText("Red");
                        renderer.setForeground(Color.RED);
                        break;
                case 2: renderer.setText("Blue");
                        renderer.setForeground(Color.BLUE);
                        break;
                case 3: renderer.setText("Green");
                        renderer.setForeground(Color.GREEN);
                        break;
                default: break;
            renderer.setPreferredSize(preferredSize);
            return renderer;
    }Another thing that I wanted to know is whether each of the items in the jcombobox can be associated with individual Action objects by using something like setAction(new HTMLEditorKit.BoldAction()).
regards,
Nirvan.

There are 3 foregrounds to be set.import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import javax.swing.*;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
public class ComboColors {
   JComboBox comboBox;
   public static void main(String[] args) {
      SwingUtilities.invokeLater(new Runnable() {
         @Override
         public void run() {
            new ComboColors().makeUI();
   public void makeUI() {
      comboBox = new JComboBox(
            new Object[]{"BLACK", "RED", "BLUE", "GREEN"});
      comboBox.setRenderer(new BasicComboBoxRenderer() {
         private final Color[] colors = {
            Color.BLACK, Color.RED, Color.BLUE, Color.GREEN
         @Override
         public Component getListCellRendererComponent(JList list, Object value,
               int index, boolean isSelected, boolean cellHasFocus) {
            super.getListCellRendererComponent(list, value,
                  index, isSelected, cellHasFocus);
            if (index == -1) {
               index = comboBox.getSelectedIndex();
            setForeground(colors[index]);
            list.setSelectionForeground(colors[index]);
            comboBox.setForeground(colors[index]);
            return this;
      JFrame frame = new JFrame();
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.add(comboBox);
      frame.add(new JButton("Dummy"), BorderLayout.SOUTH);
      frame.pack();
      frame.setLocationRelativeTo(null);
      frame.setVisible(true);
}db

Similar Messages

  • Jtable sorting column having Jcombobox renderer

    Hi
    I am trying to sort Jtable column having Jcombobox renderer , please can you give me some idea to do it.
    already tried with JDK1.6 table.setAutoCreateRowSorter(true);

    To get better help sooner, post a [_SSCCE_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    db

  • JComboBox renderer: please give advise

    Hello.
    Sorry, if my question is not completely matching Swing theme of this forum.. But it contains a word "renderer" nevertheless :)
    I have several types of entities, that contain two string fields: code and friendly name (for example, trains stations code-name: NYC - New York City, or trains routes code-name, etc.). They are not saved in database, but are typed in one utility class "by hands". Because of that, I don't use ids for this entities. Only code and name
    I need JComboBox, that shows this entities friendly names, and sends selected entity to server. Now, I show names and send codes. The problem is with finding name by code when i show info from server - renderer should contain some sort of HashMap with code as key to find friendly name by this string code. I think it's not the best solution.
    Should I assign id's to all my entities and use arrays with id as index in my renderers? Also send to server not codes, but this ids.
    Am I right that such kind of string codes are similar to "friendly name" and shouldn't be used as unique indentifiers at all?
    Thanks.

    I think this is what you are looking for:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=613731

  • Experimenting with FCP/ Real time rendering question

    Hello, I am preparing to purchase a Mac Pro and spent some time at the local mac affiliate store playing with FCP and motion.
    In fcp I took two clips and dropped them in the timeline, adding the 3d cube transition, and some filters to both clips.
    I was looking at performance of real time rendering on teh base config of the MP I plan on purchasing.
    I then added another clip above these two, intending on dropping the opacity to further push the RTR (real time rendering). This clip overlapped the transition of the two other clips in v1 and v2.
    When attempting to play the timeline the viewer window now said "Not Rendered"
    My question is:
    Is there a limit to how many tracks can be run under the RTR? Why did I get this message?
    My main reason of the move to a Mac Pro is to get away from constantly pre-rendering.
    Thanks everyone in advance!

    In fcp I took two clips and dropped them in the timeline, adding the 3d cube transition, and some filters to both clips.I was looking at performance of real time rendering on teh base config of the MP I plan on purchasing. I then added another clip above these two, intending on dropping the opacity to further push the RTR (real time rendering). This clip overlapped the transition of the two other clips in v1 and v2.
    <
    Sounds like you know what you're doing and what you expect. A factor that has not been mentioned yet, besides RAM, prefs and drive speeds, is your video format.
    Also, the new rev of FCP is taking advantage of tons of processing overhead, vastly increasing the amount of stuff you can do in real time. However, real time is largely a preview operation, regardless of the machine or system, unless you are using proprietary codecs, such as Media 100, that might be hardware-assisted. Output is almost always a rendering issue, multiple stacked or processed layers require the creation of new media.
    The only way you're going to be able to decide if Macintosh and FCP are right for you is to demo thoroughly and that requires using your own footage.
    bogiesan

  • JComboBox rendering issue in JTable

    I use a JComboBox to render certain items in my JTable.
    When I use jdk1.3, the items render perfectly.
    The problem is that when I use jdk1.4, the combobox is rendered with larger insets, clipping the bottom of the text.
    Has anyone else had this problem?

    Okay - I can get the JComboBox and define an empty border for it. This means it renders okay.
    What I don't like is stupid things like this creeping into jdk1.4 which weren't there in jdk1.3.
    Thanks for the reply Rommie.

  • Preview rendering question

    Hey all, Mike the newbie has more questions
    I imported about 6k images into lightroom and I'm working on organizing them within the collections but my question previews. As I scroll through the library there is a delay in seeing the images as they seem to render realtime.  This seems to impact me more when the library has larger images and I'm scrolling down more.
    I imported the images using the 1:1 previews, would going with standard preview produced a better performance result?
    How about none?  I read the FAQ but it really doesn't address whether the rendering is altered by choosing this the different preview options.
    My second question about previews is there any option to rebuild them, for instance say there is a speed bump with using the standard previews, can I delete the current ones and recreate/rebuild them somehow?

    I imported the images using the 1:1 previews, would going with standard preview produced a better performance result?
    How about none?
    That's strange. There might be some small performance penalty of having 1:1 previews over standard (since they are physically bigger), but it should be marginal. What is your machine specs?
    My guess is either the machine is too slow or your expectations are too high (Lightroom is not speed daemon). Are your sure the previews have actually be built?
    My second question about previews is there any option to rebuild them, for instance say there is a speed bump with using the standard previews, can I delete the current ones and recreate/rebuild them somehow?
    Yes, you can discard 1:1 previews and rebuilt standard. Use the Library>Previews menus.

  • Custom JComboBox Renderer

    Hi!
    I want to use a JMenu as a renderer for a JComboBox. When the combo is pressed, the popup that is open should contain 3 JMenu. Then if the mouse id moved over any of the 3 JMenu, 2 check menu items should be opened in an additional popup, near the popup that contains the 3 JMenu.
    A picture that illustrate the behaviour could be found here: [http://www.trilulilu.ro/mogadiscio/ee847e6a14b2d5]
    I'm able to obtain the 3 JMenus in the combo's popup but the 3 JMenus does not repond to mouse events so the additional submenu is not open.
    Any suggestions are welcome.
    Orly

    package supercombo;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.util.ArrayList;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JCheckBoxMenuItem;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JMenu;
    import javax.swing.JToolBar;
    import javax.swing.SwingConstants;
    public class SuperCombo6 extends JComboBox {
        public static void main(String[] args) {
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(500, 300);
            frame.setTitle("Super Combo 6");
            JToolBar tb = new JToolBar();
            tb.setLayout(new FlowLayout(FlowLayout.LEFT));
            tb.add(new SuperCombo6(new String[][] {
                    {"M1", "M1.1", "M1.2"},
                    {"M2", "M2.1", "M2.2"},
                    {"M3", "M3.1", "M3.2"}
            frame.getContentPane().setLayout(new BorderLayout());
            frame.getContentPane().add(tb, BorderLayout.NORTH);
            frame.setVisible(true);
        public SuperCombo6(String[][] items) {
            super(new SuperComboModel6(items.length));
            setPreferredSize(new Dimension(120, 20));
            setRenderer(new SuperComboRenderer6(items, this));
    class SuperComboModel6 extends DefaultComboBoxModel {
        private int _size;
        public SuperComboModel6(int size) {
            this._size = size;
        public int getSize() {
            return _size;
    class SuperComboRenderer6 extends DefaultListCellRenderer {
        private JLabel title;
        private ArrayList menus;
        public SuperComboRenderer6(String[][] items, final JComboBox combo) {
            title = new JLabel("SuperCombo6");
            title.setHorizontalAlignment(SwingConstants.LEFT);
            menus = new ArrayList();
            for (int i = 0; i < items.length; i++) {
                final JMenu menu = new JMenu(items[0]);
    for (int j = 1; j < items[i].length; j++) {
    JCheckBoxMenuItem item = new JCheckBoxMenuItem(items[i][j]);
    menu.add(item);
    menus.add(menu);
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
    if (index == -1) {
    return title;
    JMenu menu = (JMenu) menus.get(index);
    if (isSelected) {
    menu.setSelected(true);
    } else {
    menu.setSelected(false);
    return menu;

  • JComboBox Length question!

    When i use JComboBox,it's length is fixed.Perhaps some items is too long to display,so user can't understand it clearly.So i want find JComboBox that can expand automaticly,if item is long,it will be expanded.I tried several function JComboBox provided,but it's remain as usral.I don't know if some master-hand meets same question! Thanks a lot!

    If you want the List wider, look [url http://www2.gol.com/users/tame/swing/examples/SwingExamples.html]here
    If you want the whole combo wider, use
    myCombo.setMinimumSize(new Dimension(200,20));
    It's also possible to calculate the width of string in a certain font (to plug in above), but you can search for that.

  • JComboBox checkmark question

    When using a JComboBox the selected item is indicated in the dropdown list with a checkmark. I created a really simple renderer that changes the color of the text based on an attribute of the Object:
    public class SupportedObjectComboBoxRenderer extends JLabel implements ListCellRenderer {
      public SupportedObjectComboBoxRenderer() {
      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
        SupportedObject so = (SupportedObject)value;
        this.setForeground(so.isActive() ? Color.BLACK : Color.GRAY);
        this.setText(so.getName());
        return this;
    }The checkmark is no longer displayed. I believe I need to render that myself (in the JLabel). Is that default checkmark icon accessible so that I can load it as a resource? Or is there something else I should be doing to show it?

    Is there a way you can change the text color of a JComboBox item without
    otherwise disrupting the look and feel?don't know if this will work for you, but worth a try
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
      JComboBox cbo = new JComboBox(new String[]{"London","Madrid","New York","Rome","Sydney","Washington"});
      public Testing()
        setSize(150,75);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        cbo.setRenderer(new MyRenderer());
        JPanel jp = new JPanel();
        jp.add(cbo);
        getContentPane().add(jp);
      public static void main(String args[]){new Testing().setVisible(true);}
    class MyRenderer extends DefaultListCellRenderer
      public Component getListCellRendererComponent(JList list,Object value,
                          int index,boolean isSelected,boolean cellHasFocus)
        JLabel lbl = (JLabel)super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus);
        lbl.setForeground(index%2==0? Color.RED:Color.BLUE);
        return lbl;
    }

  • JComboBox simple question

    I think is a very simple question, I ve got a JComBox with an array of Strings. Something like this:
    JPanel myPanel;
    JComBox box;
    String levels[]={"Level 1","Level 2","Level 3","Level 4","Level 5"};
    box = new JComboBox (levels);
    myPanel.add(box);
    Ok. My question is: How can I let just the level 1 enable at first, or how can I enable or disable just one level of the JCombox, like level 1 and 2 enable but level 3, 4 and 5 disable.
    Thanks a lot!! Hope someone helps me!!

    I don't think this is possible with a JComboBox. I believe it is with a JMenu and JMenuItems.
    You could only display valid options by adding/deleting them. Or you could handle it in the listener code. ie if they select an invalid option do nothing. This would require you keeping track of which options are valid elsewhere in the code.

  • Using Dynamic Link for projects cut in Premiere and effects in AE.. Rendering Question..

    Hello,
    So this baffles me. I've been working a lot in Premiere CC lately with ProResHQ green screen material. I send the sequence or individual clips using After Effects by right clicking on the clip in Premiere and selecting Create After Effects Composition...
    So I do my thing and when it comes time to render, I select render from IN to OUT in Premiere and wait. Now here's my question. If I select render in Premiere, it will be very sluggish until I click on the After Effects icon in my dock which brings the app to the foreground again. For some reason, this will dramatically accelerate my render speeds in premiere after I re-select the AE app. Why is this doing this?
    I'm using a new Mac Pro trashcan tower 3.5 clock speed. 64GB ram. Dual D700 graphics card. I am using a USB3.0 drive for my editing and the internal drive on the tower for the scratch. I'm getting a Lacie 1TB little bigdisk thunderbolt2 that will be my prime scratch and video location for future stuff.
    Thanks for your help -
    R

    Generally speaking, there is no 'one & only' proper workflow. Just keep in mind the following:
    - not all effects and transitions are properly translated when travelling from PrPro to AE;
    - in Dynamic Link scenario PrPro communicates with AE projects via single instance of headless AE, which creates a bottleneck. See this good old thread on Dynamic Link workflow, pay attention to Todd's comments;
    - since AE allows to set a DI as a proxy to dynamically linked comp, with reasonable amount of dynamically linked comps in PrPro project you can enjoy the best of both worlds, instantly switching between a DI and dynamically linked comp back and forth with no needs to replace anything in PrPro timeline. Test on your own with which amount of dynamically linked comps setting DIs as proxies still work. For my rig test 30 min sequence built out of 935 dynamically linked comps, which are just source footages in their own comps, hence, the equivalent to rendered DIs set to proxies, takes around 27 hours to render, while 30 min sequence built out of the same 935 source footages renders in real time.

  • JComboBox - 2 questions

    First, does implementing ListCellRenderer in a combo govern what is displayed when the combo popup is displayed or when it's not? If it isn't the popup, how do you take control of what is displayed when the combo's button is clicked and the popup displays? I'd like to display a two-column table in the popup area and I'm not quite where to start.
    Second, anyone have any idea how to stop the default drop down popup from displaying when a combo is clicked? Basically, in another case I'd like to install my own listener and display something unique when the combo is clicked and not have the drop down displayed.
    Any thoughts and help would be appreciated.

    ListCellRenderer only presents a user friendly view of what the value is usually is. For example if you add a JLabel to a combo box, the user sees something like this...
    javax.swing.JLabel[preferredwidth=preferredheight=text="Java Website"font=java.awt.Font[...
    ... which is the result of toString(). But if you use a renderer, you present the user with a label so the user only sees:
    Java Website
    Second point: you can do this roughly by rendering your cell as a JPanel with the layout as a GridLayout(2, 1). I haven't done this before but I think it might work. If it doesn't, you'll have to write a custom combobox. Which you will have to do for your third question.
    Stephen                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • FCP6 - rendering question

    Just got FCP6. Question: I am editing primarily HDV in the sequence. When I drop in a SD clip or a still, there is a green bar over the the clip / still in the timeline. When I render, it looks like it renders for a split second, but the green bar is still there. The SD clips and the stills play just fine, but there is still a green bar over it. What's going on?

    Check to make sure ALL of the render types under the Render->Sequence menus are checked.
    -DH

  • Basic save (rendering) question

    Hi ,
    I am lost on some of the basics, I have a MOV file which I wanted to cut up a bit and then simple resave , apparently this is not
    possible , and or rerender the file in its cut version. There are so many options on how to render a project to movie format
    How can I best import a MOV or AVI recut it and simple re save it without losing having to lose pixels in the process
    thanks a bunch
    Version is Premiere Por CS3 3.0.0 (374)

    Ralph,
    Depending on your source footage, you might not be able to do what you want 100%.
    For the .MOV footage, you might be better off getting Apple's QuickTime Player Pro (US$29 upgrade/unlock). It will allow limited editing, about that which you describe, and will do a pretty good job at letting you Save in the same format.
    Now, if you have DV-AVI Type II material, you can do what you want, and then Export as DV-AVI Type II (uncheck Recompress) and there is only very minimal loss in quality. I doubt that you could ever detect it.
    As a bit of background, let's step through just what happens, when one has footage that is not I-frame (all Frames individually present). First, PrPro will basically convert this GOP (Group of Pictures) footage into full I-frame. The "difference Frames" in that footage will be rendered in, so that one can edit at a Frame level. At this point, you no longer have that original GOP structure, but full I-frame. If you THEN Export to the original GOP format, you WILL recompress that footage, loosing quality. The best that you can probably do is to use an intermediate CODEC, like the Lagarith Lossless, to get an Exported file, though in a new format, not the original compressed GOP one.
    With .MOV files, if the CODEC used is the Animation CODEC, you can do editing and then Export to .MOV, using the Animation CODEC w/ minimal loss in quality. With other .MOV CODEC's, it will very likely not be as good, but that will depend on the exact CODEC used in both the source footage and the Exported footage.
    MOV, AVI, MPEG, WMV are but "wrappers," and much can be inside them - they are NOT created equal. This ARTICLE will give you a bit of background on these "wrappers." I'd also suggest doing a Google search for "GOP" and read some of the articles on Group of Pictures formats. I believe that you'll get the idea of what that footage is all about. Jim Taylor, author of DVD Demystified, has a great analogy, "birds on a telephone," that outlines the GOP structure in clear, easy to understand terms.
    Good luck, and sorry that the answer to your question is - it depends.
    Hunt

  • Hp compaq nx9000, ati and direct rendering question

    Hi,
    I have Radeon IGP 340M onboard my laptop and I can't figure out the way to enable direct rendering. I use "radeon" driver from xf86-video-ati package. Any suggestions? This is my glxinfo output:
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: No
    server glx vendor string: SGI
    server glx version string: 1.2
    server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
    GLX_SGIX_fbconfig
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
    GLX version: 1.2
    GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIS_multisample
    OpenGL vendor string: Mesa project: www.mesa3d.org
    OpenGL renderer string: Mesa GLX Indirect
    OpenGL version string: 1.2 (1.5 Mesa 6.4.2)
    OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
    GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
    GL_ATIX_texture_env_combine3, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
    GL_NV_blend_square, GL_NV_point_sprite, GL_NV_texgen_reflection,
    GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
    GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays
    glu version: 1.3
    glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x23 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x25 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x28 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x2a 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x2b 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x2d 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
    0x30 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
    0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
    0x32 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
    0x4b 32 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
    And Xorg log.
    (II) RADEON(0): X context handle = 0x1
    (II) RADEON(0): [drm] installed DRM signal handler
    (II) RADEON(0): [DRI] installation complete
    (**) RADEON(0): EngineRestore (16/16)
    (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
    (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
    (II) RADEON(0): [drm] dma control initialized, using IRQ 10
    (II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
    (WW) RADEON(0): DRI init changed memory map, adjusting ...
    (WW) RADEON(0): MC_FB_LOCATION was: 0x1fff1e00 is: 0x1fff1e00
    (WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0x207f2000
    (**) RADEON(0): GRPH_BUFFER_CNTL from 20035c5c to 20055c5c
    (II) RADEON(0): Direct rendering enabled
    I do not know what to think, everything seems correct.

    Sorry for the simple question but: Are you in video group?
    Also, it might depends on the order the modules are loaded. That's the case with my Intel card. Try loading agpart first:
    MODULES=(!agpgart !ati_agp agpgart ati_agp ...)

Maybe you are looking for