daily pastebin goal
84%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Esse aqui é o botão que vai disparar a inclusão
  2. private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
  3.         // TODO add your handling code here:
  4.         jComboBox1.addItem(makeObj("Teste"));
  5.     }
  6.  
  7. private Object makeObj(final String s) {
  8.         return new Object(){public String toString() {return s;}};
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top