Skip to content

Commit

Permalink
Invalid cultivar selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzjaikla committed May 7, 2024
1 parent 507c40f commit bee0924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ListDialog/CultivarListDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private void AddDataToTable(Cultivar cul) {
cbCrop.setVisible(false);
jLabel1.setVisible(false);
jLabel2.setVisible(false);
cbCultivar.setInit(null, "INGENO", cul != null ? cul.INGENO : "", CultivarList.GetAt(FileX.general.crop), new XColumn[]{new XColumn("CulName", "Cultivar Name", 200)}, "CropCode");
cbCultivar.setInit(null, "INGENO", cul != null ? cul.INGENO : "", CultivarList.GetAt(FileX.general.crop), new XColumn[]{new XColumn("CulName", "Cultivar Name", 200)}, "CulCode");
this.setPreferredSize(new Dimension(this.getPreferredSize().width, 590));

EventQueue.invokeLater(() -> {
Expand Down
2 changes: 1 addition & 1 deletion src/xbuild/CultivarsFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {

private void jXTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTable1MouseClicked
if (evt.getClickCount() == 2) {
int nRow = jXTable1.getSelectedRow();
int nRow = jXTable1.getSelectedRow() + 1;
Cultivar culEdit = (Cultivar) FileX.cultivars.GetAt(nRow);

final CultivarListDialog dialog = new CultivarListDialog(null, culEdit, true);
Expand Down

0 comments on commit bee0924

Please sign in to comment.