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

Error in adding radio buttons in a button group in Swing

I want to covert my code in AWT to Swing in Java. ButtonGroup group1=new ButtonGroup(); JRadioButton radio1=new JRadioButton("Brute Force Technique",true); JRadioButton radio2=new JRadioButton("Simulated Annealing Technique",false); …
Tapasweni Pathak
  • 552
  • 4
  • 7
  • 24
1
vote
2 answers

I can't pin down the semantics for this JRadioButton functionality

I thought the best way to demonstrate this is with a compilable example. I want to have a group of radio buttons which behave as such (only one can be selected at a time); however, when the currently selected radio button is 'selected' again, the…
c24w
  • 7,421
  • 7
  • 39
  • 47
1
vote
3 answers

Coordinating two `ButtonGroup`

I have a group of 3 JRadioButtonMenuItem in a menu, and 3 JToggleButton in a toolbar. Each of them is bound to 3 Action, so that when I disable one action, both the corresponding item and button will be disabled. When I click a menu item, I would…
bigstones
  • 15,087
  • 7
  • 65
  • 82
1
vote
2 answers

Radio button issue

So for this class in java, here is my code import java.awt.*; import java.awt.event.*; import java.util.Random; import javax.swing.*; import javax.swing.border.*; public class RadioSelection extends JFrame implements ActionListener { private…
1
vote
1 answer

removing jRadioButton automatically in java

I have a set of JRadioButtons placed inside a JPanel. Also I have a "delete" button, such that if a JRadioButton is selected and then this "delete" button is pressed, the JRadioButton should be deleted from the JPanel. I tried this following (action…
infoSyStem
  • 145
  • 1
  • 2
  • 14
1
vote
5 answers

How to get the text value of JRadioButton

I am creating a project in java. My Program has 80 JRadioButtons .... I need the get the text value of them.. Now these radiobuttons are added to ButtonGroup(each has 4 radio buttons)... I know how to get the text value from the radio button by this…
Tuhin Bhatt
  • 362
  • 2
  • 7
  • 19
1
vote
1 answer

How to change color of MaterialUI outlined Button Group border in react?

I have created a dashboard for the User/Admin panel in react project. I have used drawer buttons by applying MUI Button Group with outlined style. It provided me blue color on the button border. How can I change the border color of buttons? const…
shoieb
  • 11
  • 1
  • 1
  • 4
1
vote
2 answers

plMortgage Calculator GUI Issue with A Lot

I am having a lot of issues with this application. I have been at this all day and cannot get this figured out. I have a Java application that is for a class. The issue that I am having is trying to get the JRadioButtons assigned to variables in the…
David
  • 31
  • 3
1
vote
2 answers

Java Mortgage Calculor GUI Issue

I am sort of new to programming, well at least programming in Java, I am in a class at the moment and I just need someone to point me in a direction. I am having an issue getting all the JPanels to show up in specific spots on the application…
David
  • 31
  • 3
1
vote
1 answer

React Native Elements ButtonGroup - Can't group buttons into columns

I'm new with React Native, and am having an issue with styling UI elements. I am using using React-Native-Elements ButtonGroup and am having a very difficult time figuring out how to group the buttons into two columns. I currently have them like…
1
vote
0 answers

React native elements Button Group button disappears when navigating back to the screen

I have been trying to figure out what I am doing wrong here, and I just can't. I have two screens where I pull data from my database, and click on an item(category). That item(category) then pulls up more data from my database when a certain word is…
1
vote
2 answers

React Native Elements ButtonGroup - Enable button when conditions are met

I am using react-native-elements ButtonGroup with 3 buttons. I need to disable all buttons when the application starts, when conditions are met, I need to enable specific buttons. Ive disabled all buttons using the false flag but I'm not sure how…
Charl
  • 155
  • 2
  • 10
1
vote
1 answer

Create a button-group table with Bootstrap

I'm using Bootstrap 4 and I'm having problems trying to create a button group with multiple rows, like sketched in the image below. The usual button groups in Bootstrap only seem to support buttons aranged in one row or column. Is there a way to…
Safron
  • 802
  • 1
  • 11
  • 23
1
vote
1 answer

Enabling ButtonGroup

quick and easy question for those who know how to use Java, is there a way to enable/disable Button-group ? i know i can set it on Radio Button, but if i have a Button-group of selected Radio Buttons, is there a way to set Enabled to all or i have…
user7943915
1
vote
5 answers

How to apply javascript to multiple button groups

I have css and js on a button group so that when you click a button from the group it shows as active, and when you click a different button, that button becomes active and the rest are cleared. I have to have 22 of these button groups (I only put 2…
Joshua D.
  • 13
  • 1
  • 5