Skip to content

Commit b7d4b97

Browse files
committed
frames + graph size correct
1 parent 8714d5c commit b7d4b97

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/java/NewMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void run() {
5353
JFrame.setDefaultLookAndFeelDecorated(true);
5454
JDialog.setDefaultLookAndFeelDecorated(true);
5555
frameClientMRTG.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
56-
frameClientMRTG.setSize(840, 440);
56+
frameClientMRTG.setSize(840, 480);
5757
frameClientMRTG.setLocation(211, 211);
5858
setLF();
5959
//frameClientMRTG.mrtgPopupMenu.updateUI();

src/main/java/org/jrobin/mrtg/MrtgConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface MrtgConstants {
4545
int POOL_CAPACITY = 100;
4646

4747
// graph dimensions
48-
int GRAPH_WIDTH = 512, GRAPH_HEIGHT = 244;
48+
int GRAPH_WIDTH = 600, GRAPH_HEIGHT = 224;
4949

5050
// should we remove a RRD file if link is removed from the client
5151
boolean REMOVE_RRD_FOR_DEACTIVATED_LINK = true;

src/main/java/org/jrobin/mrtg/client/AllTraffic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void run() {
121121
frameAllTraffic.setIconImage(icone.getImage());
122122
frameAllTraffic.setLocation(333, 222);
123123
//frameAllTraffic.setPreferredSize(GRAPH_SIZE);
124-
frameAllTraffic.setSize(680, 640);
124+
frameAllTraffic.setSize(768, 640);
125125
frameAllTraffic.setVisible(true);
126126
}
127127
});

src/main/java/org/jrobin/mrtg/client/ClientMRTG.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ClientMRTG extends JFrame {
1414

1515
String helpStr = TITLE + "\nUse 32-bit counters for speed <= 100 Mbit/s. \nPolling every 300 sec.\nNeed jre-1.8\nMade by Roman Koldaev, \nSaratov city, Russia, \nMail = [email protected]\nGitHub = https://github.com/harp077 \nSourceForge = https://sourceforge.net/u/harp07/profile/ \n";
1616

17-
static String TITLE = " Java MRTG, the traffic SNMP-poller, v1.0.8, build 12-05-23. ";
17+
static String TITLE = " Java MRTG, the traffic SNMP-poller, v1.0.9, build 13-05-23. ";
1818

1919
static Dimension MAIN_TREE_SIZE = new Dimension(400, 400);
2020

src/main/java/org/jrobin/mrtg/client/GraphFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private void fillYears(JComboBox combo) {
476476
combo.insertItemAt("" + i, i - START_YEAR);
477477
}
478478
// YEAR BUG FIXED !!!!
479-
combo.setSelectedIndex(1);
479+
combo.setSelectedIndex(1); // 1 = current year !!
480480
}
481481

482482
private void fillHours(JComboBox combo) {

0 commit comments

Comments
 (0)