About 1,440,000 results
Open links in new tab
  1. java - Implementing back/forward buttons in Swing - Stack Overflow

    Dec 25, 2011 · As part of the GUI, I want to have Forward and Back Buttons. The Approach I'm trying to take is to implement methods that will push the current JPanel to a stack and retrieve the previous value (Be that in a forwards or reverse direction (hence 2 stacks)). I …

    Missing:

    • Icon

    Must include:

  2. How to Add and Customize Back Button of Action Bar in Android?

    Apr 18, 2025 · We can easily Customize the Back Button by using the getSupportActionBar() library and setting the drawable file using setHomeAsUpIndicator in the java/kotlin file. Customize the back button actionBar.setHomeAsUpIndicator(R.drawable.mybutton);

  3. java - How do I add an image to a JButton - Stack Overflow

    Oct 2, 2012 · JButton button = new JButton(); try { Image img = ImageIO.read(getClass().getResource("resources/water.bmp")); button.setIcon(new ImageIcon(img)); } catch (Exception ex) { System.out.println(ex); } In this example, it is assumed that image is in src/resources/ folder.

  4. swing - Default action button icons in Java - Stack Overflow

    Feb 21, 2012 · Is there a set of default action icons available in the Swing application framework? For instance, instead of making a button that says "Save," I'd like the standard picture of a floppy disk without having to specify an image myself. For "Open", I'd like the standard picture of a …

  5. How to add Back Button on Toolbar in Android [Tutorial]

    Apr 18, 2021 · This tutorial demonstrates how you can add a Back Button on the Toolbar in Android App.

  6. ion-back-button: Custom Menu Back Button for Applications

    The back button navigates back in the app's history when clicked. It is only displayed when there is history in the navigation stack, unless defaultHref is set. The back button displays different text and icon based on the mode, but this can be customized.

  7. How to Customize Default Action Button Icons in Java?

    Customizing action button icons in Java provides a way to enhance the visual interface of your application. Here’s how you can effectively change default button icons using Java Swing.

  8. Adding Icon to JButton : JButton « Swing « Java Tutorial

    import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; public class IconButton { public static void main(String args[]) { JFrame frame = new JFrame("DefaultButton"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Icon warnIcon = new ImageIcon("yourFile.gif"); JButton button2 = new JButton(warnIcon);

  9. java - How to implement the Android ActionBar back button

    Apr 11, 2012 · Now you can enable the back button in the onCreate method of your "child" activity. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getActionBar().setDisplayHomeAsUpEnabled(true); }

  10. Add Icon to JButton in Java - Online Tutorials Library

    Learn how to add an icon to a JButton in Java with this comprehensive guide. Enhance your Java GUI applications by integrating icons seamlessly.

Refresh