Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfPlacamae.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- ManipulaArquivo manipulaArquivo = new ManipulaArquivo();
- List<String> listaAuxiliar = manipulaArquivo.abrirArquivo("PlacaMae.dat");
- if (listaAuxiliar.size() > 0) {
- String selectedItem = new JanelaPesquisar(listaAuxiliar, getBounds().x - getWidth() / 2 + getWidth() + 5, getBounds().y).getValorRetornado();
- if (!selectedItem.equals("")) {
- String[] aux = selectedItem.split(";");
- tfPlacamae.setText(aux[1] + " - " + aux[2]);
- } else {
- tfPlacamae.requestFocus();
- tfPlacamae.selectAll();
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment