Install the Eclipse toolbar cd ~ In Ubuntu ~ /. Gtkrc-2.0 (create) Add the following content www.2cto.com Java code style "gtkcompact" {font_name = "Sans 9" GtkButton: default_border = {0, 0, 0} GtkButton: default_outside_border = {0, 0, 0} GtkButtonBox: child_min_width = 0 GtkButtonBox: Weight = 0 GtkButtonBox: Weight = 0 GtkButtonBox: Weight = 0 GtkMenu: vertical-padding = 1 GtkMenuBar :: internal_padding = 0 GtkMenuItem: Authorization = 4 GtkToolbar: internal-padding = 0 GtkToolbar: space-size = 0 GtkOptionMenu: Authorization = 0 GtkOptionMenu: Authorization = 0 GtkPaned :: handle_size = 4 GtkRange: Weight = 0 GtkRange: stepper_spacing = 0 GtkScale: value_spacing = 0 weight: scrollbar_spacing = 0 GtkExpander: expander_size = 10 GtkExpander :: authorization = 0 GtkTreeView: vertical-separator = 0 GtkTreeView: horizontal-separator = 0 GtkTreeView: expander-size = 8 GtkTreeView: fixed-height-mode = TRUE GtkWidget :: focus_padding = 0} class "GtkWidget" style "gtkcompact" style "gtkcompactextra" {xthickness = 1 ythickness = 1} class "GtkButton" style "gtkcompactextra" class "GtkToolbar" style "external" class "GtkPaned" style "gtkcompactextra"