Questions tagged [buttongroup]

buttongroup refers to bootstrap button groups. A button group is a series of buttons grouped together either horizontally or vertically by a parent element with the role group and the class btn-group.

refers to bootstrap button groups. A button group is a series of buttons grouped together either horizontally or vertically by a parent element with role="group" and class="btn-group".

Button groups is supported in all versions of bootstrap. Example :

<div class="btn-group" role="group" aria-label="Basic example">
  <button type="button" class="btn btn-secondary">Left</button>
  <button type="button" class="btn btn-secondary">Middle</button>
  <button type="button" class="btn btn-secondary">Right</button>
</div>

Recent documentation :
http://getbootstrap.com/components/#btn-groups (bootstrap 3)
http://v4-alpha.getbootstrap.com/components/button-group/ (bootstrap 4)

205 questions
1
vote
2 answers

Bootstrap 3: Add a select list in button group

I am trying to build a small search box using bootstrap button group, in which I want provision to select the field and value to search for. I tried with the following code and the UI is fine. But when I click on the dropdown to select the field (or…
Krishna Sarma
  • 1,852
  • 2
  • 29
  • 52
1
vote
1 answer

How to set OnClick on xlabs.buttongroup for Xamarin?

Trying to figure out how to use XLabs ButtonGroup for Xamarin Forms. https://github.com/XLabs/Xamarin-Forms-Labs/wiki/ButtonGroup I can't find an event handler or any way to set a listener for a click. The sample code for how to use the button just…
BWhite
  • 713
  • 1
  • 7
  • 24
1
vote
1 answer

How to save the selected JRadioButton from a ButtonGroup?

My program is trying to save the state of a ButtonGroup, so that it can be written to a file at the end of the program, or restored to the buttons if the user selects to go 'Back'. I have previously found this question: How do I get which…
1
vote
1 answer

Put JRadioButtons in new rows in ButtonGroup?

Is there a way to put JRadioButtons on new lines in ButtonGroups? I don't mean 1 button on every line but for example 2 buttons on one line and 2 buttons on the next but each in the same group like this for example: o Button one o Button two o…
1
vote
2 answers

Making a button group act like radiobuttons with Bootstrap

Hopefully can someone help me with this one, I can't figure it out. I have 3 buttons in Bootstrap with one default active, see http://jsfiddle.net/sbystxp2/, number two has the active state. So far so good, but now I want the active state changed…
Arie
  • 363
  • 4
  • 14
1
vote
2 answers

How to find that item is selected in a button group?

In Java swing, I want to be able to tell what item is selected in a button group. I looked in the Button Group API and didn't see anything that would achieve this. Is there some method that any of you have discovered to do this?
Keith
  • 123
  • 4
  • 10
1
vote
1 answer

Java: ButtonGroup will not display

Cannot make my ButtonGroup display for the first two checkboxes. Attempted to add them, which seems successful, however the group will not show. Do you see what I did incorrectly? import javax.swing.*; import java.awt.*; import…
1
vote
1 answer

Making toggleButtons behave like RadioButtons

Im trying to make my toggleButtons in group behave like radioButtons/* only one selected at the time*/ I have tryed this private void checkButtonStatuses(ActionEvent event){ …
Tomas Bisciak
  • 2,801
  • 5
  • 33
  • 57
1
vote
1 answer

How to disable group of radio buttons in java

Hello I am looking for a way to disable a radio buttons if textfield is empty. My radio buttons called buttonGroup1(jbutton1,jbutton2,jbutton3,jbutton4) should be disabled if textfield is empty but I have no idea how to make if statment for this
user2121038
  • 153
  • 1
  • 3
  • 14
1
vote
3 answers

What am i doing wrong in retrieving value of button group?

import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import net.java.dev.designgridlayout.DesignGridLayout; import java.sql.*; class databaseprob { JFrame JF; Container C,C1; JDesktopPane…
Toms
  • 239
  • 1
  • 5
  • 15
1
vote
1 answer

Overflow button does not work twice when a button group is among the components in the overflow

Looked up to find a similar issue in the forum. Overflow button does not work twice when a button group is among the components in the overflow. Is this fixed yet ? My code snippet for the toolbar looks like this : { id:…
subbrl
  • 327
  • 4
  • 15
1
vote
2 answers

ExtJS 3.4: Render buttons in hidden tabpanel

In ExtJs 3.4 I have a TabPanel with two tabs, the second tab contains a FormPanel, what contains a ButtonGroup. If the second tab is active, when I load the page, then everything is good, but when the first tab is active and I switch to the second,…
user1721713
  • 483
  • 3
  • 15
1
vote
1 answer

How to add a button group of JRadioButtons in a Panel or just JRadioButtons in a panel in Java?

I am trying to make a menu of a restaurant and the reason I am putting this question is because I want to have 4 panels using border layout.I am having 4 panels each of them named westPanel,topPanel,eastPanel and bottomPanel.I have already made the…
1
vote
1 answer

JRadio Button Selection issue

I dont know if this is a silly issue that i am having or what but for the life of me i cant figure out the solution. I am writing a quiz program with 20 questions. The program asks each question and the user has 5 choices which are 5 JRadio Buttons…
rafaelzm2000
  • 133
  • 1
  • 4
  • 15
1
vote
1 answer

Screen readers and adding a checkbox to a button group while still allowing multiple selections

To make a GUI accessible to screen readers, check boxes should belong to a button group. However, if you want to allow multiple check boxes to be selected simultaneously, you cannot add them to a javax.swing.ButtonGroup as turning "on" one of those…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202