Questions tagged [jtoolbar]

refers either to Joomla JToolBar or Java Swing JToolBar.

Java Swing JToolBar provides a component that is useful for displaying commonly used Actions or controls.

Joomla JToolBar is a component for creating a HTML toolbar on the site.

132 questions
1
vote
1 answer

How to create Full Screen width jtoolbar

I created full screen jform using netbeans in java. I need to create Full Screen width sized jtoolbar. How I do this? this code I use for create full screen size jform / jform resize Dimension screenSize =…
1
vote
0 answers

Java dock JToolBar to a different JPanel

For a GUI i'm working on I need a JToolBar to be able to dock into more than one JPanel. Because I have multiple toolbars inside a JPanel in the BorderLayout.NORTH position, I can't add the toolbar directly to the main JPanel and so I don't get…
no_joke
  • 56
  • 5
1
vote
1 answer

JToolbar is hidden by JMenu

I'm using Netbeans to add a JToolbar to my window which also has a JMenuBar. Here is the design-time look: alt text http://www.theinfernals.org.uk/misc/design.png .. but during run-time I get this: alt text…
pierre
  • 1,235
  • 1
  • 13
  • 30
1
vote
1 answer

How to change JToolbars floating image

Is there an easy way to change JToolbars floating image like the drag image in transferhandlers without having to code an own transferhandler?
Corn
  • 47
  • 7
1
vote
2 answers

How to change the Background color of JMenuBar and JToolBar?

I want to change the background color of JMenuBar and JToolBar. For that I had tried but not working. I had followed the solutions given by some websites. But, those are also not working correctly. Here is my code: import java.awt.Color; public…
user3556256
  • 47
  • 3
  • 9
1
vote
3 answers

JToolbar, Stop it going horizontal

I have a JToolbar. I was wondering if there was way to stop it going horizontal. I would prefer it to only go vertical. I do want it floating. I have tried making a property changed listener and changing the orientation back to vertical but no…
bulb
  • 110
  • 9
1
vote
2 answers

How do you create separation between JMenuBar and JToolbar

i am trying to add Separate between the JMenuBar and JToolBar because it's coming like their are no space between JMenuBar and JToolBar for example can i make JToolBar bold or something JPanel addTable = new JPanel(new…
isslam akkilah
  • 418
  • 1
  • 11
  • 23
1
vote
2 answers

Add two JToolBars to a border layout.

I'm fairly new to Java so I hopefully I don't over complicate my question. Basically I'm trying to add two JToolbar vertically on top of one another to the north container of a border layout. However, I don't think you can add more than one…
user2994367
  • 11
  • 1
  • 7
1
vote
1 answer

Adding MouseListeners for JToolBar (events are consumed?)

When adding a MouseListener to a JToolBar, jToolbar.addMouseListener(new MouseInputAdapter() { @Override public void mouseClicked(MouseEvent e) { log.debug(e.getPoint()); } }); The event only fires when clicked outside the…
1
vote
2 answers

Combining Swing Components

Have been trying to manually write a GUI the past few days and am having a pretty elementary issues. I have a JFrame as the main window and them trying to add JPanels within it with other components in them. Individually the pieces work but having…
1
vote
2 answers

How to stop BasicArrowButton from expanding to take the entire toolbar?

I am creating an window with a JToolBar containing two buttons. One is a regular JButton and the other is a BasicArrowButton (javax.swing.plaf.basic.BasicArrowButton). Without doing any additional configuration, the JButton does not expand in the…
iaswtw
  • 162
  • 1
  • 9
1
vote
1 answer

JToolbar not displaying background color

my JToolbar is not displaying the background color even after I set the it from the Netbeans GUI Designer. The code to set the background color is even included in the autogenerated code. What could be wrong?
ken
  • 299
  • 3
  • 15
  • 32
1
vote
2 answers

How to keep Metal L&F when dragging JToolBar

In our aplication we use Metal L&F. We are using a floatable JToolBar; it happens that when doing the drag behavior it appears with the Windows L&F. May anyone say me how to keep Metal L&F when dragging the JToolBar? Thanks P.D. Our JToolBar is…
1
vote
1 answer

Joomla: How to load view from custom Jtoolbar button?

I'm trying to create a custom Jtoolbar button in Joomla 2.5. I'd like the button to act very similar to the built in edit button, except I'd like it to be called generate. The button should load a generate view (similar to the singular edit view).…
Jglstewart
  • 696
  • 1
  • 8
  • 16
1
vote
2 answers

Grid bag Layout with Toolbar and MenuBar

I have a problem with my java interface, I want to display a menubar and toolbar together with some labels and textfields, however every time I use the gridbaglayout it didn't display my label as well as my textfield it only display my menubar and…
Zyrax
  • 171
  • 2
  • 7
  • 16
1 2 3
8 9