private void initializeRatioSlider(){
  ratioSlider.setMajorTickSpacing(10);
  ratioSlider.setMinorTickSpacing(2);
  ratioSlider.setPaintTicks(true);
  Hashtable<Integer,JLabel> labelTable=new Hashtable<Integer,JLabel>();
  labelTable.put(new Integer(0),new JLabel("0/100"));
  labelTable.put(new Integer(25),new JLabel("25/75"));
  labelTable.put(new Integer(50),new JLabel("50/50"));
  labelTable.put(new Integer(75),new JLabel("75/25"));
  labelTable.put(new Integer(100),new JLabel("100/0"));
  ratioSlider.setLabelTable(labelTable);
  ratioSlider.setPaintLabels(true);
}

private void initializeRatioSlider ( ) { ratioSlider . setMajorTickSpacing ( 10 ) ; ratioSlider . setMinorTickSpacing ( 2 ) ; ratioSlider . setPaintTicks ( true ) ; Hashtable < Integer , JLabel > labelTable = new Hashtable < Integer , JLabel > ( ) ; labelTable . put ( new Integer ( 0 ) , new JLabel ( "0/100" ) ) ; labelTable . put ( new Integer ( 25 ) , new JLabel ( "25/75" ) ) ; labelTable . put ( new Integer ( 50 ) , new JLabel ( "50/50" ) ) ; labelTable . put ( new Integer ( 75 ) , new JLabel ( "75/25" ) ) ; labelTable . put ( new Integer ( 100 ) , new JLabel ( "100/0" ) ) ; ratioSlider . setLabelTable ( labelTable ) ; ratioSlider . setPaintLabels ( true ) ; }
initializes the values of the gui ratio slider .
