Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. import wheels.users.*;
  2. import java.awt.Color;
  3.  
  4. public class GraphicalBarCode extends Frame{
  5. private GraphBar di1, di2, di3, di4, di5, cDi;
  6. private BarCode _bar;
  7.  
  8. public GraphicalBarCode(int num){
  9. BarCode _bar = new BarCode(num);
  10. String temp = _bar.getBarCode();
  11. String d1 = temp.substring(2,7);
  12. String d2 = temp.substring(8, 13);
  13. String d3 = temp.substring(14, 19);
  14. String d4 = temp.substring(20, 25);
  15. String d5 = temp.substring(26, 31);
  16. String cD = temp.substring(32, 37);
  17.  
  18. GraphBar di1 = new GraphBar(d1,0);
  19. GraphBar di2 = new GraphBar(d1,5);
  20. GraphBar di3 = new GraphBar(d1,10);
  21. GraphBar di4 = new GraphBar(d1,15);
  22. GraphBar di5 = new GraphBar(d1,20);
  23. GraphBar cDi = new GraphBar(d1,25);
  24. }
  25.  
  26. public static void main(String[] args){
  27. GraphicalBarCode app = new GraphicalBarCode(args[0]);
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement