Code with Finding: |
class LDSPanel {
public LDSPanel(PassportApduService service) {
super(new BorderLayout());
this.service = service;
this.wrapper = null;
hexviewer = new HexViewPanel(ZERO_DATA);
JPanel north = new JPanel(new FlowLayout());
fidTF = new HexField(2);
selectButton = new JButton("Select File");
selectButton.addActionListener(this);
saveButton = new JButton("Save File");
saveButton.addActionListener(this);
north.add(new JLabel("File: "));
north.add(fidTF);
north.add(selectButton);
north.add(saveButton);
JPanel south = new JPanel(new FlowLayout());
leTF = new HexField(1);
leTF.setValue(0xFF);
offsetTF = new HexField(2);
readBinaryButton = new JButton("Read Binary");
readBinaryButton.addActionListener(this);
readNextButton = new JButton("Read Next");
readNextButton.addActionListener(this);
south.add(new JLabel("Offset: "));
south.add(offsetTF);
south.add(new JLabel("Length: "));
south.add(leTF);
south.add(readBinaryButton);
south.add(readNextButton);
add(north, BorderLayout.NORTH);
add(hexviewer, BorderLayout.CENTER);
add(south, BorderLayout.SOUTH);
}
}
|