Fix Drawing region error.
This commit is contained in:
parent
d80c57526e
commit
faed4ab9ae
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -10,8 +10,6 @@ import javax.swing.JPanel;
|
|||||||
import javax.swing.ListSelectionModel;
|
import javax.swing.ListSelectionModel;
|
||||||
|
|
||||||
import sig.modules.RabiRaceModule;
|
import sig.modules.RabiRaceModule;
|
||||||
import sig.modules.Controller.Axis;
|
|
||||||
import sig.modules.Controller.ControlConfigurationWindow;
|
|
||||||
|
|
||||||
public class SessionListWindow extends JFrame{
|
public class SessionListWindow extends JFrame{
|
||||||
JPanel container = new JPanel();
|
JPanel container = new JPanel();
|
||||||
@ -26,6 +24,7 @@ public class SessionListWindow extends JFrame{
|
|||||||
|
|
||||||
sessionlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
sessionlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
sessionlist.setLayoutOrientation(JList.VERTICAL);
|
sessionlist.setLayoutOrientation(JList.VERTICAL);
|
||||||
|
sessionlist.setPreferredSize(new Dimension(120,150));
|
||||||
|
|
||||||
UpdateSessionList();
|
UpdateSessionList();
|
||||||
|
|
||||||
@ -66,7 +65,8 @@ public class SessionListWindow extends JFrame{
|
|||||||
super.paintComponent(g);
|
super.paintComponent(g);
|
||||||
//Axis.GetAxisDisplay(g,window.ConstructTemporaryAxis(),0,0,window.axis_width,window.axis_height);
|
//Axis.GetAxisDisplay(g,window.ConstructTemporaryAxis(),0,0,window.axis_width,window.axis_height);
|
||||||
//Axis.GetAxisIndicatorDisplay(g,window.ConstructTemporaryAxis(),0,0,window.axis_width,window.axis_height);
|
//Axis.GetAxisIndicatorDisplay(g,window.ConstructTemporaryAxis(),0,0,window.axis_width,window.axis_height);
|
||||||
if (sessionlist.getSelectedIndex()!=-1) {
|
if (sessionlist.getSelectedIndex()!=-1 &&
|
||||||
|
RabiRaceModule.module.session_listing.data.size()>sessionlist.getSelectedIndex()) {
|
||||||
//Get the players from that session.
|
//Get the players from that session.
|
||||||
Session s = RabiRaceModule.module.session_listing.data.get(sessionlist.getSelectedIndex());
|
Session s = RabiRaceModule.module.session_listing.data.get(sessionlist.getSelectedIndex());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user