L2JMobius

High Five Introducing Ghost Services

mastermind007 · 32 · 1266

Online GuruGel

  • Knight
  • ***
    • Posts: 91
I noticed that when I try to use the Recall command on traders through the admin panel, they just disappear from the game. How to fix this?


Online Stayway

  • Grand Duke
  • *****
    • Posts: 754
    • http://l2ahyura.com
Since we use java 25,
For xml editor you should replace it "_" as var to other name e.g
Code: [Select]
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {}

SwingUtilities.invokeLater(() -> new XmlEditor().setVisible(true));
}

And may here too you use
Code: [Select]
private void updateItemFromForm() {
int row = itemTable.getSelectedRow();
if (row != -1) {
Item sel = itemDataList.get(row);

When you have it itemTable.setAutoCreateRowSorter(true); so for it I think you should convert the indice
Code: [Select]
private void updateItemFromForm() {
int viewRow = itemTable.getSelectedRow();

if (viewRow != -1) {
int modelRow = itemTable.convertRowIndexToModel(viewRow);
Item sel = itemDataList.get(modelRow);

sel.mincount = txtMin.getText();
sel.maxcount = txtMax.getText();
sel.buylow = txtBuyL.getText();
sel.buyhigh = txtBuyH.getText();
sel.selllow = txtSellL.getText();
sel.sellhigh = txtSellH.getText();
sel.level = txtLvl.getText();
}
}
is just a idea may works better