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
2
votes
2 answers

How to make 1 JToolbar button larger than the rest?

I'm making a Java application that has a toolbar at the top of the window. On this toolbar there are 12 buttons, but the customer wants one of the buttons to be 2x the size of all the other buttons as shown below. How can I do this so that the…
Marek Krzeminski
  • 1,308
  • 3
  • 15
  • 40
2
votes
1 answer

How to get JToolBar to cover the entire height of window?

I have written the following, producing a toolbar on the right only as high as the two buttons in it. I would like the toolbar to run the height of the window - top to bottom. What do I have to do? import javax.swing.*; import java.awt.*; public…
Mark Meyers
  • 533
  • 3
  • 9
  • 17
2
votes
2 answers

How to remove gap between controls in JToolBar?

How to remove gap between controls in JToolBar? I want to have no free space between controls in JToolBar. EDIT: I was wrong. There is no free space. The problem is caused by JButton (situated in JToolBar) with icon only. It has some extra margins…
guest
  • 1,696
  • 4
  • 20
  • 31
2
votes
3 answers

BorderLayout problem with JSplitPane after adding JToolbar (Java)

Problem: My program layout is fine, as below before I add JToolbar to BorderLayout.PAGE_START Here's a screenshot before JToolbar is added: Here's how it looked like after adding JToolbar: May I know what did I do wrong? Here's the code I used: …
Alex Cheng
  • 691
  • 2
  • 9
  • 21
2
votes
1 answer

How to add gradient color to Jbuttons placed in jtoolbar

I am using netbeans platform module to develop this desktop application. I am using drag and drop facility in netbeans in the developement. I needed to create a toolbar which is having few buttons..I need to create a gradient color for these…
user3016435
  • 25
  • 1
  • 8
2
votes
1 answer

Difference between creating an object within the constructor vs outside of the constructor?

Within my program, I am trying to create a toolbar within a frame. Within the toolbar, I have three buttons that are represented with a picture instead of text. The problem is that I have found that there is a difference in how the buttons are…
2
votes
2 answers

How to add an ImageIcon to a JToolBar

I am trying to add a icon to a toolbar but what is the best place to put it in? My desktop or should I make a new file in the project file or add all the pictures in because it is not showing and this is my code: JToolBar toolBar = new JToolBar(); …
isslam akkilah
  • 418
  • 1
  • 11
  • 23
2
votes
3 answers

paintComponent() paints jMenu and JToolBar

I programmed a little paint application, with a JMenu, JToolBar and a JPanel, the problem is, when I begin to draw on the panel, the JMenu and JToolBar are drawn on the same panel, and sometimes the background of the panel becomes gray instead of…
FrankelStein
  • 907
  • 2
  • 13
  • 30
2
votes
1 answer

How to remove/replace the close button from a floating JToolBar

I am learning Java Swing and have a optical issue that i am trying to solve. When i use the System-Default Look and Feel on Windows 7, i get the huge close button and empty title-bar over the floating JToolBar. Image of the floating toolbar only…
code_angel
  • 1,537
  • 1
  • 11
  • 21
2
votes
1 answer

Java Swing JToolBar

I have created JToolBar (Java Swing). I have set a Background image on frame which contains JToolBar. I want my JToolBar to be transparent so that the image kept on frame should be visible. I am using setOpaque(false) but it is not having any effect…
Nilesh
  • 557
  • 2
  • 10
  • 21
2
votes
1 answer

JToolBar prevent minimize

JToolBar can be attached and detached from the frame or panel into a separate window. So I want to use it as set of emergency commands and indicators. The problem is when detached if you minimize the frame to which it belongs , the toolbar also…
user1633277
  • 510
  • 2
  • 7
  • 14
2
votes
1 answer

Is there a widget for making configurable toolbar in java

Is there a widget for making configurable toolbar in java ? Couldnt find anything in swingx but seems a common problem
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
2
votes
2 answers

JTextField in JToolbar - cannot display properly in both Linux and Windows

Please see the SSCCE below: import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.EventQueue; import javax.swing.Box; import javax.swing.JComponent; import javax.swing.JFrame; import…
The111
  • 5,757
  • 4
  • 39
  • 55
2
votes
1 answer

JToolBars in JTabbedPanes; incorrect tab name when docked and undocked

I'm quite new to event listening and GUI's, so am having trouble figuring this out. I have a JTabbedPane to which I have added 3 components. These components are JToolBars, which allows me to drag them out of the JTabbedPane into a floating window.…
jdn
  • 33
  • 6
2
votes
1 answer

MiGLayout will not expand JPanel down

As I am sure some of you are aware, I am attempting to make an alernative tool to Tiled that is open source. I asked before what layout I should use and I was suggest the MiGLayout which I really do love, but don't understand that well at all. I…
Zeveso
  • 1,274
  • 3
  • 21
  • 41
1 2
3
8 9