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

Is there a way to create JToolBar (floating) on start?

I want to create a JToolBar without adding it into any JFrame window. If I have to add it, then how can I make it such that the toolbar is created as a floating toolbar not a docking toolbar?
user385261
  • 4,069
  • 8
  • 26
  • 24
1
vote
2 answers

How to add buttons into a jtoolbar dynamically

I have a java application which requires to add button sets contains in jpanels dynamically. ex:- . . JButton button1 = new JButton("Button_1"); JButton button2 = new JButton("Button_2"); JPanel panel = new…
Harsha
  • 3,548
  • 20
  • 52
  • 75
1
vote
1 answer

Java JTable and JToolBar resizing strangely

I noticed very strange behavior of my program today. Basically I have JToolBar uder which is JScrollPane with JTable. Both inside JPanel inside JFrame. Every container using MigLayout. Now, if I start app, this is its default look: But, if I move…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
1
vote
3 answers

How to make a link betweeen the name a function and the actual function in java

I am building a user interface in netBeans (coding by hand, more flexible) with multiple toolbars. What I am trying to do is create an actionListener for each button. I am retrieving names of the functions from XML and parse them to string. I will…
Pantaziu Cristian
  • 882
  • 2
  • 14
  • 26
1
vote
2 answers

switching between different JPanels when pressing jtoolbar buttons

Im designing a parent Jpanel contains JToolBar && inner JPanel.By the JToolBar's action i need to replace the inner JPanel with new JPanel which where i designed already. switching between different JPanels when pressing jtoolbar buttons. How can I…
Mukthi
  • 561
  • 4
  • 13
  • 35
1
vote
1 answer

Gradient Background for JToolBar

I Want to set gradient background color for JToolBar in Java. Am able to set this gradient effect for JPanel. Thanks, Sathish
Sathish
  • 1,481
  • 5
  • 20
  • 33
1
vote
1 answer

Swing Layout not showing properly

I'm making a GUI in Swing, and as a layout I'm using different classes just to adhere to the MVC structure. In my Main.class I made a layout in Swing, to show the MenuBar and a Toolbar, it runs perfectly fine, but it's not displaying correctly…
VilleFTW
  • 55
  • 8
1
vote
2 answers

In which situation does a JComponent request to get focus? How to know which component is actually the focus owner?

I have a bug in my application that i'm not able to find. I have some selectable and resizable JPanel , which display a border when selected. For some of them the border dissapear after moving them, without apparently any reason. Since now i have…
Heisenbug
  • 38,762
  • 28
  • 132
  • 190
1
vote
1 answer

Get floatable JToolBar position when it changes

I have a floatable toolbar the user can move around at his convenience and I want to keep the last position so he finds it at the same location on next start. I'm using a BorderLayout so the toolbar can be docked North, South, East or West (or be in…
Matthieu
  • 2,736
  • 4
  • 57
  • 87
1
vote
1 answer

How to paint a docked JToolBar over the rest of the components from the panel

Is there any way to paint a docked JToolBar OVER the rest of the components from an existing panel? Basically I want, when docking the toolbar (from a floating position), not to interfere with my other components and existing layout. simple example,…
Marius Manastireanu
  • 2,461
  • 5
  • 19
  • 29
1
vote
1 answer

Add image to Joomla JToolBar custom link button

Hi I have created a custom button link in the admin section of my component, something like this: $bar = & JToolBar::getInstance('toolbar'); $bar->appendButton( 'Link', 'export', 'Export', 'index.php?option=com_component&task=export&format=raw'…
Martin
  • 10,294
  • 11
  • 63
  • 83
1
vote
2 answers

JToolbar: JToggleButton Alignment

I am attempting to align JToggleButtons in a JToolBar. I want the buttons to be aligned vertically and to the left. My code is as follows: JToolBar toolbar = new JToolBar(); toolbar.setLayout(new…
Joe Balin
  • 177
  • 2
  • 17
1
vote
0 answers

How to make a JToolbar span the full width of the screen

I'm creating a Swing GUI that uses a JToolbar. At the moment, I'm using a MigLayout and placing the toolbar inside of that. However, the result is that the toolbar does not span the whole width of the screen, but instead is only as long as it needs…
Shannon
  • 100
  • 8
1
vote
1 answer

JToolBar show arrow if too many buttons were added

Is there a way to have an arrow (like ) in JToolBar(API) when the visible container is smaller than the space all the buttons need? (For illustration purposes see WebUI zkoss) The UI manager (L&F) should be the normal one of swing.
Markus
  • 763
  • 7
  • 24
1
vote
2 answers

Changing the dimensions of Jbuttons within a JToolBar

I have a JToolBar with several Jbuttons on it which act as Icons in my program. I wanted to implement a button that, when pressed, increases the size of all my icons in the toolbar. For example: Here I create my toolbar: private JToolBar toolBar =…
Cypher236
  • 527
  • 1
  • 4
  • 13
1 2 3
8 9