Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wheels.users.*;
- import java.awt.Color;
- public class GraphicalBarCode extends Frame{
- private GraphBar di1, di2, di3, di4, di5, cDi;
- private BarCode _bar;
- public GraphicalBarCode(int num){
- BarCode _bar = new BarCode(num);
- String temp = _bar.getBarCode();
- String d1 = temp.substring(2,7);
- String d2 = temp.substring(8, 13);
- String d3 = temp.substring(14, 19);
- String d4 = temp.substring(20, 25);
- String d5 = temp.substring(26, 31);
- String cD = temp.substring(32, 37);
- GraphBar di1 = new GraphBar(d1,0);
- GraphBar di2 = new GraphBar(d1,5);
- GraphBar di3 = new GraphBar(d1,10);
- GraphBar di4 = new GraphBar(d1,15);
- GraphBar di5 = new GraphBar(d1,20);
- GraphBar cDi = new GraphBar(d1,25);
- }
- public static void main(String[] args){
- GraphicalBarCode app = new GraphicalBarCode(args[0]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement