public void paintObjects() {
		removeAll();

		Button btop = new Button("top");
		objectsName = new Label[objects.size()];
		objectsSize = new Label[objects.size()];
		objectsSelect =  new Button[objects.size()];

		lobjs.setFont(new Font(Font.SERIF, Font.PLAIN, 25));

		add(lobjs);
		add(btop);

		lobjs.setBounds(20,40, 100, 20);
		btop.setBounds(210, 40, 200, 30);

		btop.addActionListener(this);

		int count = 1;

		int max;
		if(objects.size() > items * page) {
			max = items * page;
		} else {
			max = objects.size();
		}
		int j = 0;

		for(Map.Entry<String, Object> e : objects.entrySet()) {

			if(j >=  (page -1) * items && j < max){
				Object[] value = (Object[])e.getValue();
				int size = value.length;

				objectsName[count - 1] = new Label(e.getKey());
				objectsSize[count - 1] = new Label(String.valueOf(size));
				objectsSelect[count - 1] = new Button("select");

				add(objectsName[count - 1]);
				add(objectsSize[count - 1]);
				add(objectsSelect[count - 1]);

				objectsName[count - 1].setBounds(20,40 + 90 * count,200,30);
				objectsSize[count - 1].setBounds(objectsName[count - 1].getX() + objectsName[count - 1].getWidth() + 20,40 + 90 * count,30,30);
				objectsSelect[count - 1].setBounds(objectsSize[count - 1].getX() + objectsSize[count - 1].getWidth() + 20 , 40 + 90 * count, 100, 30);

				objectsSelect[count - 1].setActionCommand("select" + e.getKey());

				objectsSelect[count - 1].addActionListener(this);

				count++;
			}
			j++;
		}

		if(objects.size() > page * items){
			Button bn = new Button("next");
			bn.setActionCommand("nextObjects");
			add(bn);
			bn.setBounds(100, 590, 50, 30);
			bn.addActionListener(this);
		}

		if(page > 1){
			Button bp = new Button("prev");
			bp.setActionCommand("nextObjects");
			add(bp);
			bp.setBounds(20, 590, 50, 30);
			bp.addActionListener(this);
		}

		Label p = new Label(page + "/" + ((objects.size() - 1) / items + 1));
		add(p);
		p.setBounds(180, 590, 50, 30);

	}