Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onPaint(Graphics g) {
- g.setColor(Color.RED);
- Trade t = new Trade(this);
- if (t.isOpen()) {
- TradeItem[] all = t.getMyTradeInv();
- for (TradeItem one : all) {
- g.drawRect(one.rect.x, one.rect.y, one.rect.width,
- one.rect.height);
- }
- all = t.getOtherTradeInv();
- for (TradeItem one : all) {
- g.drawRect(one.rect.x, one.rect.y, one.rect.width,
- one.rect.height);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment