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
0
votes
1 answer

how to dispose JToolBar's frame?

https://i.stack.imgur.com/YhSE3.png after i set "toolbar.setVisible(false)" to false , jtoolbar is hidden, but jframe is still on screen ? how can i dispose that temporary frame ?
0
votes
1 answer

Joomla upload button on component toolbar

In my custom component, I am using the following code to bring the Media Manager popup: JToolBarHelper::media_manager('directory', 'Upload'); "directory" obviously sets the default directory that will appear when the button is clicked, which it…
Lodder
  • 19,758
  • 10
  • 59
  • 100
0
votes
1 answer

Add Dynamically loading images using for loop in JToolBar

Possible Duplicate: Issue regarding dynamically loading Images in loop using Java Swing Can any one tell how I would add images dynamically using for loop in JToolBar. I tried a lot but it didn't work for dynamic loading of images. I want to…
Faizan Ahmed
  • 93
  • 2
  • 4
0
votes
1 answer

Execute action (task) in a toolbar button joomla 2.5

i am trying to modify the com_phocamaps to add the "Copy marker" action. I have created the button modifying function addToolbar with this line JToolBarHelper::customX( 'phocamapsmarker.copy', 'copy.png', 'copy_f2.png', 'Copy Marker' ); in the…
Erusso87
  • 667
  • 1
  • 7
  • 19
0
votes
1 answer

JToolBar always float

When you add a JToolBar to a component, you can drag it out and it create a new floating window while the parent component is also there. How can I make JToolBar show this floating window automatically with the parent invisible?
LanguagesNamedAfterCofee
  • 5,782
  • 7
  • 45
  • 72
0
votes
1 answer

JButton not visible in JToolBar when using the Nimbus look-and-feel

I am wondering if anyone can come up with a work-around to the following layout issue I am having with the Nimbus look-and-feel. The issue is that the button in the toolbar is not visible because the JToolBar layout manager does not correctly…
lifelongcoug
  • 678
  • 6
  • 12
0
votes
3 answers

Adding components into Component[] array

This seems so basic, but for some reason I can't get it to work. I have the following code: Component[] AddEditDelete = ToolbarPool.getDefault().findToolbar("AddEditDelete").getComponents(); for (Component component : AddEditDelete) { …
Metal Wing
  • 525
  • 1
  • 11
  • 22
-1
votes
1 answer

Swing JMenu problem

Why I can't add JMenuBar to JToolBar, is it possible? Or I can only add menubar on frame?Tutorial says: As the code shows, to set the menu bar for a JFrame, you use the setJMenuBar method. To add a JMenu to a JMenuBar, you use the add(JMenu)…
Martin
  • 767
  • 2
  • 9
  • 21
-1
votes
1 answer

How can i align one button to the right in a JToolbar?

i have a toolBar, and i need to put a series of jbuttons and jlabels to the left of the screen, but one of the buttons to the right. I can't make the last one move to the right. this.panelControl=new JToolBar(); setLayout(new…
eisklat
  • 41
  • 6
-1
votes
3 answers

Swing: multiline toolbar or using Flowlayout as toolbar

I have toolbar with random number of buttons from two up to twenty. Width of each button can vary. I have to put them all at top area and use JToolBar. On a small screen resolutions (e.g. 800x600) some buttons could be out of screen (AFAIK JToolbar…
FoxyBOA
  • 5,788
  • 8
  • 48
  • 82
-1
votes
1 answer

Adding JButton on JToolbar vertically

I want to add more buttons on JToolbar but I could not add button one on another vertically; rather they are aligning themselves automatically horizontally. public class Interface { JTable tableT = new JTable(); private JTable table; public…
Asdakamessoy
  • 87
  • 4
  • 12
-1
votes
1 answer

Buttons disappear from the JToolbar when I drag it

I'm having problem with my JToolBar. It contains many buttons The problem is that when I drag the toolbar, the buttons disappear and its width is a constant "126 pt" that I can not change in the dimensions. How can I change the dimensions "or…
choymns
  • 17
  • 1
  • 2
1 2 3
8
9