vorrei inserire contemporaneamente un'immagine ed un testo in un jbutton...come posso fare?
tulipan
vorrei inserire contemporaneamente un'immagine ed un testo in un jbutton...come posso fare?
tulipan
JButton ha un costruttore che riceve un String e un Icon. Crea un ImageIcon e sei a posto. Per il posizionamento/allineamento vedi setHorizontalAlignment(), setHorizontalTextPosition(), setVerticalAlignment(), setVerticalTextPosition().Originariamente inviato da tulipan
vorrei inserire contemporaneamente un'immagine ed un testo in un jbutton...come posso fare?
Andrea, andbin.dev – Senior Java developer – SCJP 5 (91%) • SCWCD 5 (94%)
java.util.function Interfaces Cheat Sheet — Java Versions Cheat Sheet