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

Error While Creating JToolBar

I get this error while adding buttons to a toolbar Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: Sketcher.SketcherFrame$ColorAction cannot be cast to javax.swing.Icon ColorAction is a class to create toolbar buttons that…
Dummy Derp
  • 237
  • 1
  • 3
  • 15
1
vote
4 answers

JToolBar - JButton - Image not showing

My main dialog has gotten so cluttered with buttons. I thought it would be pretty cool to just add a tool bar with some of the buttons to the dialog. I am currently using a image in a application toolbar to start my application. It is in…
jkteater
  • 1,381
  • 3
  • 36
  • 69
1
vote
2 answers

Add JTextField to JToolBar

I'm trying to add JTextField to JToolBar and it works, but it is too long. I need it to take only 3 letters. Here is the screenshot of it now... I tried following methods, JTextField field = new JextField(3); // thought this limits to three…
Isuru Madusanka
  • 1,397
  • 4
  • 19
  • 27
0
votes
2 answers

JToolBar not showing

I had a simple drawing application. I need to add a menu and a toolbar on the left side. So now, instead of using a simple JFrame, I'm creating a simple class that extends JFrame. I was able to add the menu following some examples online, but…
Eric
  • 3,301
  • 4
  • 33
  • 39
0
votes
2 answers

Joomla custom admin button actions

I have no idea why this doesn't work, but none of my custom button actions (tasks) do anything in my component. In my view.html.php file I have: JToolBarHelper::custom('reports.export_csv', 'csv', '', 'CSV',…
aapis
  • 33
  • 1
  • 8
0
votes
1 answer

JToolbar frontend submit value on click

I'm building a joomla component and I can't find a solution to the following. In my front end I'm using the joomlas build in class JToolbar to handle events on click like edit, delete so one.
lgt
  • 1,024
  • 3
  • 18
  • 33
0
votes
1 answer

Why can't my JToolBar and JPanel coexist on the same JFrame

I want my Jpanel to be just below my toolbar but the result will be my jpanel not appearing and if I also make my JPanel to have a borderlayout of page start the JFrame will only show the JPanel and not my toolbar. This is my code package…
anonymous
  • 3
  • 2
0
votes
1 answer

How to duplicate actions to a JToolBar?

I have a JMenu setup already. I have created a toolbar with icons but I am unsure how to associate actions with the toolbar buttons. This is how I have made the the toolbar public class ToolBar { ArrayList buttons; JButton…
miitza
  • 1
  • 1
  • 3
0
votes
0 answers

How to remove focus and outline of JButton on Toolbar

I'm using Corretto Java 11 and attempting to remove the focus around a JButton on a Toolbar when the mouse moves over it remove the border around the JButton avoid any borders when the JButton is clicked Based on other threads related to removing…
Unhandled Exception
  • 1,427
  • 14
  • 30
0
votes
1 answer

JToolBarHelper won't work on IE8 and IE9 Browsers?

I'm working on joomla 1.5 and I have this form and it has a Save and Close button but it is not working on IE browsers. The conflict on MooTools.js and jQuery.js is resolved but still the buttons don't work. What is the possible cause of…
justin
  • 1,659
  • 5
  • 21
  • 25
0
votes
0 answers

Toolbar disappears after resizing window

I have a problem which I can't solve. The application uses a BorderLayout, north is the JToolBar, south status bar and in the center, there is the main frame. When I open a window, it appears in the center. When I want to resize the window manually…
Raydo8
  • 1
  • 1
0
votes
1 answer

If there are two and more stickers in one column, not every sticker you click responds to it, showing the JToolBar with buttons

I'm trying to write a kanban board. But if there are two and more stickers in one column, often the JToolBar with buttons will be shown only if you click on a sticker in this column for the firs time. I thought that there were some problems with…
0
votes
1 answer

Remove floating JToolbar

I have a JButton in my application to add/remove a JToolBar. When the toolbar is docked, I can remove it using: toolBar.getParent().remove(toolbar); // toolBar is an instance of JToolBar If I do this while the toolbar is floating, nothing happens,…
Aldo Canepa
  • 1,791
  • 2
  • 16
  • 16
0
votes
1 answer

How to set a JToolBar to the size of the frame

I am making a user interface for a music tracker I'm working on and I have some of the basics set up. I am new to user interfaces so I haven't yet got figured out all the stuff about swing graphics. My biggest problem now is that i can't get the…
0
votes
0 answers

JFrame contains ToolBar with a JButton, press button put an existing panel on frame

It's been 13 years since I last worked with Java and I'm lost. Someone please toss me a life saver. I want to add the JPanel requesting the address to display on the JFrame by adding it from a JToolBar. Each component is in a separate…
Michael Mouer
  • 127
  • 1
  • 2
  • 8
1 2 3
8 9